Transform point using localToSceneTransform

Pedro Duque Vieira pedro.duquevieira at gmail.com
Mon Jul 23 08:47:51 PDT 2012


>
> > 1-  public Vector3D transform(Vector3D point)
> >
> > This implies having a Vector class which I think is appropriate. Vector
> > objects may be used to represent translation, surface normals, pick rays,
> > or other things
> Is the existing Point3D not sufficient?


No. Imagine someone reading a piece of code that represents surface normals
and pick rays as a Point3D, not very understandable. Also it's useful to
compute angles between vectors, cross product, magnitude of the vector, ...

> 6- multiply(double scalar)
> > Multiplies each element of this transform by a scalar.
> >
> > 7- subtract(Transform t)
> > substracts this matrix with matrix t
> >
> > 8- add(Transform t)
> > adds this matrix with matrix t
> >
> > 9- transpose()
> > Transposes this matrix
> Are those methods useful for some transformation stuff? This is not a
> MatrixMath class, this is Transform...

Not sure, it's been a while since I've worked with 3d graphics libraries.
Java3d has this methods on the Transform3d class.

Thanks, cheers,

-- 
Pedro Duque Vieira


More information about the openjfx-dev mailing list