-
Notifications
You must be signed in to change notification settings - Fork 981
Open
Labels
Description
turf version: 7.2.0
turf.ellipse(...)
should produce the same result as turf.circle(...)
when the xSemiAxis
equals the ySemiAxis
and these equal the circle radius
:
turf.ellipse([-122.3104, 47.6627], 10.0, 10.0, { steps : 12 });
notice the varying side lengths of the construction that results from the ellipse
call vs the circle
call (circle shown in red below).
turf.circle([-122.3104, 47.6627], 10.0, { steps : 12 });
The initial angle of construction also differs (case with 6 sides below):
Further more, the construction of an ellipse whose xSemiAxis
and ySemiAxis
are almost equal, should also produce a result that's ver close to the result of truf.circle(...)
. i.g. turf.ellipse([-122.3104, 47.6627], 10.0, 9.999, { steps : 12 });
.