public class RotationToolkit
extends java.lang.Object
Constructor and Description |
---|
RotationToolkit() |
Modifier and Type | Method and Description |
---|---|
static javax.vecmath.Matrix3f |
copyMatrix(javax.vecmath.Matrix3f m)
Simply clones a matrix.
|
static javax.vecmath.Matrix3f |
createAUnitMatrix()
Creates a new unit matrix
|
static void |
rotate_X_Axis_Matrix(javax.vecmath.Matrix3f current,
float angle)
Simply rotates a matrix around its X Axis.
|
static void |
rotate_X_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current,
float angle)
Rotates a matrix around the X Axis of the MembraneEditor's coordinate
space.
|
static void |
rotate_Y_Axis_Matrix(javax.vecmath.Matrix3f current,
float angle)
Simply rotates a matrix around its Y Axis.
|
static void |
rotate_Y_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current,
float angle)
Rotates a matrix around the Y Axis of the MembraneEditor's coordinate
space.
|
static void |
rotate_Z_Axis_Matrix(javax.vecmath.Matrix3f current,
float angle)
Simply rotates a matrix around its Z Axis.
|
static void |
rotate_Z_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current,
float angle)
Rotates a matrix around the Z Axis of the MembraneEditor's coordinate
space.
|
static javax.vecmath.Point3f |
transformToNewPoint(javax.vecmath.Matrix3f matrix,
javax.vecmath.Point3f point3f)
Rotates a point according to the passed matrix.
|
public static javax.vecmath.Matrix3f copyMatrix(javax.vecmath.Matrix3f m)
m
- the
matrix to copypublic static javax.vecmath.Matrix3f createAUnitMatrix()
public static javax.vecmath.Point3f transformToNewPoint(javax.vecmath.Matrix3f matrix, javax.vecmath.Point3f point3f)
matrix
- the matrix to transform the point withpoint3f
- the coordinate to be transformedpublic static void rotate_X_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current, float angle)
current
- the matrix to be rotatedangle
- the rotation angle in degreespublic static void rotate_Y_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current, float angle)
current
- the matrix to be rotatedangle
- the rotation angle in degreespublic static void rotate_Z_Axis_Of_CoordinateSystem(javax.vecmath.Matrix3f current, float angle)
current
- the matrix to be rotatedangle
- the rotation angle in degreespublic static void rotate_X_Axis_Matrix(javax.vecmath.Matrix3f current, float angle)
current
- the matrix to be rotatedangle
- the rotation angle in degreespublic static void rotate_Y_Axis_Matrix(javax.vecmath.Matrix3f current, float angle)
current
- the matrix to be rotatedangle
- the rotation angle in degreespublic static void rotate_Z_Axis_Matrix(javax.vecmath.Matrix3f current, float angle)
current
- the matrix to be rotatedangle
- the rotation angle in degrees