-
Notifications
You must be signed in to change notification settings - Fork 69
Description
From the current code base:
<Value Condition="this.ContainsAngle(0.0)">Center + MajorAxis</Value> <Value Condition="this.ContainsAngle(90.0)">Center + new DxfPoint(0.0, MajorAxis.Length * MinorAxisRatio, 0.0)</Value <Value Condition="this.ContainsAngle(180.0)">Center - MajorAxis</Value> <Value Condition="this.ContainsAngle(270.0)">Center + new DxfPoint(0.0, -MajorAxis.Length * MinorAxisRatio, 0.0)</Value>
Ellipse seems to use the same 0,90,180,270 degree checks when building up the extents as the arc does, but Ellipse parameters are in radians, so it needs to check for radians.
Additionally, those hard code orthogonal points seem to make the assumption that the minor axis is always along the Y axis direction, which isn't necessarily the case.