timesXYZ method
Multiply this RotationMatrix times the point (x, y, z, 1), representing a point P(x, y, z) in homogeneous coordinates. The final coordinate, 1, is assumed.
x
The point's x-coordinate.
y
The point's y-coordinate.
z
The point's z-coordinate.
Returns the product, in a Vector3
, representing the
rotated point.
Implementation
Vector3 timesXYZ(double x, double y, double z) {
final p = Vector3(0.0, 0.0, 0.0);
p[0] = _m11 * x + _m12 * y + _m13 * z + _m14;
p[1] = _m21 * x + _m22 * y + _m23 * z + _m24;
p[2] = _m31 * x + _m32 * y + _m33 * z + _m34;
return p;
}