Affine transforms - matrix algebra

Pedro Duque Vieira pedro.duquevieira at gmail.com
Tue Jul 24 05:04:59 PDT 2012


Hi again my fellow javafx Gurus,

I remembered it could also be interesting to have:

Point3D:
- public Vector3D subtract(Point3D)
Subtracting 2 points, gives you a vector which in turn can be used to
calculate the distance between the 2 points and the direction.

- public void add(Vector3D)
Translates the Point by the given vector

Vector3D:
-double angle(Vector3d v1)
Returns the angle  between this vector and the vector parameter
-void  crossProduct(Vector3d v1, Vector3d v2)
Sets this vector to the vector cross product of vectors v1 and v2.
- double dotProduct(Vector3d v1)
Returns the dot product of this vector and vector v1.
- double length()
Returns the length of this vector.
- void normalize()
 Normalizes this vector


Thanks, best regards,
-- 
Pedro Duque Vieira


More information about the openjfx-dev mailing list