|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.vecmath.Matrix4d javax.robotics.vecmath.RMatrix4d
public class RMatrix4d
A double precision floating point 4 by 4 matrix. Primarily to support 3D rotations and translations. This class extends printing functionality of Matrix4d class
Field Summary |
---|
Fields inherited from class javax.vecmath.Matrix4d |
---|
m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33 |
Constructor Summary | |
---|---|
RMatrix4d()
Constructs and initializes a Matrix4d to all zeros. |
|
RMatrix4d(double[] matrix)
Constructs and initializes a Matrix4d from the specified 16 element array. this.m00 =matrix[0], this.m01=matrix[1], ... , this.m10=matrix[4], etc. |
|
RMatrix4d(javax.vecmath.Matrix4d matrix)
Constructs a new matrix with the same values as the Matrix4d parameter. |
|
RMatrix4d(Quaternion rot,
RVector3d tr,
double s)
Constructs and initializes a RMatrix4d from the quaternion, translation, and scale values; the scale is applied only to the rotational components of the matrix (upper 3x3) and not to the translational components. |
|
RMatrix4d(RMatrix3d rot,
RVector3d tr,
double s)
Constructs and initializes a RMatrix4f from the rotation matrix, translation, and scale values; the scale is applied only to the rotational components of the matrix (upper 3x3) and not to the translational components of the matrix. |
|
RMatrix4d(RMatrix4d matrix)
Constructs a new matrix with the same values as the RMatrix4d parameter. |
Method Summary | |
---|---|
void |
get(double[] matrix)
Gets this matrix as mono dimensional array |
void |
printf()
Prints to standard out |
void |
printf(java.io.PrintStream out)
Prints to PrintStream |
void |
printf(java.io.PrintStream out,
java.lang.String format)
Prints to PrintStream according to the format string |
void |
printf(java.lang.String format)
Prints to standard out according to the format string. |
java.lang.String |
toString()
Returns a string that contains the values of this RVector. |
java.lang.String |
toString(java.lang.String format)
Returns a string that contains the values of this RVector, according to the format string |
Methods inherited from class javax.vecmath.Matrix4d |
---|
add, add, add, add, clone, determinant, epsilonEquals, epsilonEquals, equals, equals, get, get, get, get, get, get, get, getColumn, getColumn, getElement, getRotationScale, getRotationScale, getRow, getRow, getScale, hashCode, invert, invert, mul, mul, mul, mul, mulTransposeBoth, mulTransposeLeft, mulTransposeRight, negate, negate, rotX, rotY, rotZ, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setColumn, setColumn, setColumn, setElement, setIdentity, setRotation, setRotation, setRotation, setRotation, setRotation, setRotationScale, setRotationScale, setRow, setRow, setRow, setScale, setTranslation, setZero, sub, sub, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transform, transpose, transpose |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RMatrix4d(javax.vecmath.Matrix4d matrix)
matrix
- the source matrixpublic RMatrix4d(RMatrix4d matrix)
matrix
- the source matrixpublic RMatrix4d()
public RMatrix4d(double[] matrix)
matrix
- the array of length 16 containing in orderpublic RMatrix4d(RMatrix3d rot, RVector3d tr, double s)
rot
- the rotation matrix representing the rotational componentstr
- the translational components of the matrixs
- the scale value applied to the rotational componentspublic RMatrix4d(Quaternion rot, RVector3d tr, double s)
rot
- the quaternion value representing the rotational componenttr
- the translational components of the matrixs
- the scale value applied to the rotational componentsMethod Detail |
---|
public void printf()
public void printf(java.lang.String format)
The format specifiers for numeric types have the following syntax:
%[width][.precision]conversion
width
is a non-negative decimal
integer indicating the minimum number of characters to be written to the
output. precision
is a non-negative
decimal integer usually used to restrict the number of characters. The
specific behavior depends on the conversion. conversion
is a character
indicating how the argument should be formatted. The set of valid
conversions for a given argument depends on the argument's data type.
Example: v.printf("%5.3f");
format
- The format stringPrintStream.format(java.lang.String, java.lang.Object[])
public void printf(java.io.PrintStream out)
PrintStream
out
- The PrintStream
object.public void printf(java.io.PrintStream out, java.lang.String format)
PrintStream
according to the format string
out
- The PrintStream
object.format
- The format string.printf(String)
public java.lang.String toString()
toString
in class javax.vecmath.Matrix4d
public java.lang.String toString(java.lang.String format)
format
- The format string
printf(String)
public void get(double[] matrix)
matrix
- the array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |