This content has been marked as final. Show 3 replies
Java8 has a javafx.scene.transform.Rotate::transform function so you can do stuff like =>
There was a bunch of this basic math stuff added to Java8.
// rotate the point at (0, -1) 90 degrees clockwise. Point2D rotatedNormal = new Rotate(90).transform(0, -1);
http://javafx-jira.kenai.com/browse/RT-17401 "3D geometry support"
http://javafx-jira.kenai.com/browse/RT-17942 "Provide Affine class with matrix manipulation methods (multiply, premultipy, negate, etc.)"
https://wikis.oracle.com/display/OpenJDK/3D+Features "3D Features Planned for Version 8"
Thank you jsmith, so I'll stick with java.awt.geom.AffineTransform until Java 8 ;-) I was just wondering if this was really missing until now.
You can rotate on a single point in FX.
That is what you are asking right? Rotating a vector along one of it's points?