Affine transforms - matrix algebra

Richard Bair richard.bair at oracle.com
Mon Jul 16 12:51:14 PDT 2012


> I have one more question that I asked earlier but that has not been addressed in this discussion: do we want to use Point3D for rotation axis? It would be consistent with Rotate and it would be convenient to use the Rotate.*_AXIS constants. In the other hand, it would often force users to create unnecessary Point3D instances. Or do we want both? Currently it means
>    public void appendRotation(double theta,
> double pivotX, double pivotY, double pivotZ,
> double axisX, double axisY, double axisZ)
> vs.
>    public void appendRotation(double theta,
>                               double pivotX, double pivotY, double pivotZ,
> Point3D axis)
> and similarly for prepend.

Seems to me it would be worth it to have the Point3D variants, since for normal cases it doesn't require creation of temp objects (I just use the constants), but in the animation case I can avoid it.

Thanks
Richard


More information about the openjfx-dev mailing list