Transform point using localToSceneTransform

Martin Desruisseaux martin.desruisseaux at
Thu Jul 26 05:20:04 PDT 2012

Le 26/07/12 13:40, Kirill Prazdnikov a écrit :
> If you go that route, please do not forget converters :
> Point point(Vector v) { return new Point(v.x, v.y, v.z); }
> Vector vector(Point v) { return new Vector(v.x, v.y, v.z); }

I don't think that "converter" is conceptually the appropriate approach. 
Quite the opposite, we don't want converters for preventing using 
concepts in the wrong places. I think that what the above converters 
mean are actually addition/substraction relative to the coordinate 
system origin:

public static final Point ORIGIN = new Point(0,0,0);

Point p = ORIGIN + v;
Vector v = p - ORIGIN;


More information about the openjfx-dev mailing list