-
- Downloads
Fix coordinate calculation in EllipticBorderLocation
Method getLocation should compute the location on the ellipse border from the angle (counter-clockwise, starting from the x coordinate). THe formula that was implemented took the angle on a circle and then scales it to an ellipse. But this scaling does not preserve angles, so the resulting point isn't right. This means that if one starts with a point on the border of the ellipse, uses getClosestLocationOnBounds and then getLocation, then one does not get the point that one started with. When dragging an anchorage on an elliptic component, the anchorage will often not be in the right place. Issue-Ref: 3924 Issue-Url: https://af3-developer.fortiss.org/issues/3924 Signed-off-by:Ulrich Schöpp <schoepp@fortiss.org>
parent
28adcf50
No related branches found
No related tags found
Showing
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/visual/elliptic/.ratings 1 addition, 1 deletion.../tooling/common/ui/javafx/lwfxef/visual/elliptic/.ratings
- org.fortiss.tooling.common.ui/src/org/fortiss/tooling/common/ui/javafx/lwfxef/visual/elliptic/EllipticBorderLocation.java 12 additions, 7 deletions...javafx/lwfxef/visual/elliptic/EllipticBorderLocation.java
Please register or sign in to comment