Package util
Class TransformNR
java.lang.Object
util.TransformNR
The Class TransformNR.
-
Constructor Summary
ConstructorDescriptionInstantiates a new transform nr.TransformNR
(double[] cartesianSpaceVector, double[][] rotationMatrix) Instantiates a new transform nr.TransformNR
(double[] cartesianSpaceVector, Quaternion q) Instantiates a new transform nr.TransformNR
(double x, double y, double z, Quaternion q) Instantiates a new transform nr. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getMatrixString
(Matrix3D matrix) Gets the matrix string.double[]
Gets the position array.Gets the rotation.Gets the rotation matrix.double[][]
Gets the rotation matrix array.Gets the matrix transform.double
getX()
Gets the x.double
getY()
Gets the y.double
getZ()
Gets the z.void
setRotation
(Quaternion rotation) Sets the rotation.setX
(double translation) Sets the x.setY
(double translation) Sets the y.setZ
(double translation) Sets the z.toString()
-
Constructor Details
-
TransformNR
public TransformNR(double[] cartesianSpaceVector, double[][] rotationMatrix) Instantiates a new transform nr.- Parameters:
cartesianSpaceVector
- the cartesian space vectorrotationMatrix
- the rotation matrix
-
TransformNR
Instantiates a new transform nr.- Parameters:
x
- the xy
- the yz
- the zq
- the q
-
TransformNR
Instantiates a new transform nr.- Parameters:
cartesianSpaceVector
- the cartesian space vectorq
- the q
-
TransformNR
public TransformNR()Instantiates a new transform nr.
-
-
Method Details
-
getMatrixString
Gets the matrix string.- Parameters:
matrix
- the matrix- Returns:
- the matrix string
-
getX
public double getX()Gets the x.- Returns:
- the x
-
setX
Sets the x.- Parameters:
translation
- the new x
-
getY
public double getY()Gets the y.- Returns:
- the y
-
setY
Sets the y.- Parameters:
translation
- the new y
-
getZ
public double getZ()Gets the z.- Returns:
- the z
-
setZ
Sets the z.- Parameters:
translation
- the new z
-
getRotationMatrixArray
public double[][] getRotationMatrixArray()Gets the rotation matrix array.- Returns:
- the rotation matrix array
-
getRotationMatrix
Gets the rotation matrix.- Returns:
- the rotation matrix
-
getRotation
Gets the rotation.- Returns:
- the rotation
-
setRotation
Sets the rotation.- Parameters:
rotation
- the new rotation
-
toString
-
getPositionArray
public double[] getPositionArray()Gets the position array.- Returns:
- the position array
-
getTransformationMatrix
Gets the matrix transform.- Returns:
- the matrix transform
-