RotationMatrix class
Class building a rotation matrix for rotations about the line through (a, b, c)
parallel to u, v, w
by the angle theta.
Original implementation in Java by Glenn Murray available online on https://sites.google.com/site/glennmurray/Home/rotation-matrices-and-formulas
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- matrix → Matrix4
-
Get the resulting matrix.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
timesXYZ(
double x, double y, double z) → Vector3 - 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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
rotPointFromFormula(
double a, double b, double c, double u, double v, double w, double x, double y, double z, double theta) → Vector3 - Compute the rotated point from the formula given in the paper, as opposed to multiplying this matrix by the given point. Theoretically this should give the same answer as timesXYZ. For repeated calculations this will be slower than using timesXYZ because, in effect, it repeats the calculations done in the constructor.