pub fn ellipse(
center: &GeoCoord,
semi_major_m: f64,
semi_minor_m: f64,
rotation_deg: f64,
segments: usize,
) -> Vec<GeoCoord>Expand description
Generate an ellipse as a closed polygon ring.
§Arguments
center– centre of the ellipse.semi_major_m– semi-major axis in meters (alongrotation).semi_minor_m– semi-minor axis in meters (perpendicular).rotation_deg– rotation of the semi-major axis in degrees clockwise from north.segments– number of segments (clamped to min 4).