[Marble-devel] Re: how to draw a circle with two GeoDataCoordinates points?

jun yang slickqt at gmail.com
Mon Jan 10 07:31:46 CET 2011


I got it.

GeoDataLineString line;
		line.append(point_center);
		line.append(point_on_circle);
		? = 2 * line.length(marble_widget->model()->planet()->radius())/111.12/1000;

2011/1/10 jun yang <slickqt at gmail.com>:
> GeoDataCoordinates point_center;
> GeoDataCoordinates point_on_circle;
> GeoPainter *painter;
> painter->drawEllipse(center,?,?,true); //? should fill what ?
> doc said:
> If \a isGeoProjected is true then the outline of the ellipse is drawn
>    in geographic coordinates. In this case the \a width and the \a height
>    are interpreted to be degrees.
>


More information about the Marble-devel mailing list