|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRotation
Abstract representation of a rotation in 3-dimensional space.
A rotation of some rigid body in space has three degrees of freedom. Coordinate systems can be regarded as rigid bodies.
Rotation,
MatrixRotation,
EulerZyxRotation,
AxisAngleRotation| Method Summary | |
|---|---|
Point |
applyTo(Point point)
Applies this rotation to the given point, i.e. rotates the point around the origin of its coordinate system. |
Vector |
applyTo(Vector vector)
Applies this rotation to the given vector. |
IRotation |
compose(IRotation other)
If the rotations A and B are represented as matrices, then the effect of A.compose(B) is corresponding to the matrix multiplication A*B. |
Matrix |
getMatrix()
Returns a matrix representing this rotation. |
IRotation |
invert()
Returns an inverted rotation, i.e. a rotation that reverses the effect of this one. |
double |
rotationalDistanceTo(IRotation other)
Calculates the rotational distance from this rotation to the other rotation. |
IRotation |
rotationTo(IRotation other)
Calculates the rotation needed to turn this rotation into the other rotation. |
| Method Detail |
|---|
Vector applyTo(Vector vector)
vector - the vector to be rotated
Point applyTo(Point point)
point - the point to be rotated around the origin of its coordinate
system
IRotation compose(IRotation other)
other - the rotation to combine with this one
IRotation invert()
IRotation rotationTo(IRotation other)
rot1.compose(rot1.rotationTo(rot2)) is equal to rot2
other - another rotation
double rotationalDistanceTo(IRotation other)
AxisAngleRotation which turns this rotation into the other
rotation.
Use this function to compare two rotations.
other - another rotation
Matrix getMatrix()
Matrix representing this rotation. This is potentially
a costly conversion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||