Example usage for Java javax.media.j3d Transform3D fields, constructors, methods, implement or subclass
The text is from its open source code.
Transform3D() Constructs and initializes a transform to the identity matrix. | |
Transform3D(Matrix4f m1) Constructs and initializes a transform from the 4 x 4 matrix. | |
Transform3D(Matrix4d m1) Constructs and initializes a transform from the 4 x 4 matrix. | |
Transform3D(Transform3D t1) Constructs and initializes a transform from the Transform3D object. | |
Transform3D(float[] matrix) Constructs and initializes a transform from the float array of length 16; the top row of the matrix is initialized to the first four elements of the array, and so on. | |
Transform3D(double[] matrix) Constructs and initializes a transform from the double precision array of length 16; the top row of the matrix is initialized to the first four elements of the array, and so on. | |
Transform3D(GMatrix m1) Constructs a transform and initializes it to the upper 4 x 4 of the GMatrix argument. | |
Transform3D(Quat4d q1, Vector3d t1, double s) Constructs and initializes a transform from the quaternion, translation, and scale values. | |
Transform3D(Quat4f q1, Vector3d t1, double s) Constructs and initializes a transform from the quaternion, translation, and scale values. | |
Transform3D(Quat4f q1, Vector3f t1, float s) Constructs and initializes a transform from the quaternion, translation, and scale values. | |
Transform3D(Matrix3f m1, Vector3d t1, double s) Constructs and initializes a transform from the rotation matrix, translation, and scale values. | |
Transform3D(Matrix3d m1, Vector3d t1, double s) Constructs and initializes a transform from the rotation matrix, translation, and scale values. | |
Transform3D(Matrix3f m1, Vector3f t1, float s) Constructs and initializes a transform from the rotation matrix, translation, and scale values. |
boolean | equals(Transform3D t1) Returns true if all of the data members of transform t1 are equal to the corresponding data members in this Transform3D. |
boolean | equals(Object o1) Returns true if the Object o1 is of type Transform3D and all of the data members of o1 are equal to the corresponding data members in this Transform3D. |
void | get(double[] matrix) Places the values of this transform into the double precision array of length 16. |
void | get(float[] matrix) Places the values of this transform into the single precision array of length 16. |
void | get(Matrix3d m1) Places the normalized rotational component of this transform into the 3x3 matrix argument. |
void | get(Matrix3f m1) Places the normalized rotational component of this transform into the 3x3 matrix argument. |
void | get(Quat4f q1) Places the quaternion equivalent of the normalized rotational component of this transform into the quaternion parameter. |
void | get(Quat4d q1) Places the quaternion equivalent of the normalized rotational component of this transform into the quaternion parameter. |
void | get(Matrix4d matrix) Places the values of this transform into the double precision matrix argument. |
void | get(Matrix4f matrix) Places the values of this transform into the single precision matrix argument. |
void | get(Vector3f trans) Retrieves the translational components of this transform. |
void | get(Vector3d trans) Retrieves the translational components of this transform. |
void | invert() Inverts this transform in place. |
void | lookAt(Point3d eye, Point3d center, Vector3d up) Helping function that specifies the position and orientation of a view matrix. |
void | mul(double scalar) Multiplies each element of this transform by a scalar. |
void | mul(Transform3D t1) Sets the value of this transform to the result of multiplying itself with transform t1 (this = this * t1). |
void | rotX(double angle) Sets the value of this transform to a counter clockwise rotation about the x axis. |
void | rotY(double angle) Sets the value of this transform to a counter clockwise rotation about the y axis. |
void | rotZ(double angle) Sets the value of this transform to a counter clockwise rotation about the z axis. |
void | set(Quat4f q1) Sets the value of this transform to the matrix conversion of the single precision quaternion argument; the non-rotational components are set as if this were an identity matrix. |
void | set(Quat4d q1) Sets the value of this transform to the matrix conversion of the double precision quaternion argument; the non-rotational components are set as if this were an identity matrix. |
void | set(AxisAngle4f a1) Sets the value of this transform to the matrix conversion of the single precision axis-angle argument; all of the matrix values are modified. |
void | set(AxisAngle4d a1) Sets the value of this transform to the matrix conversion of the double precision axis-angle argument; all of the matrix values are modified. |
void | set(Vector3f trans) Sets the translational value of this matrix to the Vector3f parameter values, and sets the other components of the matrix as if this transform were an identity matrix. |
void | set(Vector3d trans) Sets the translational value of this matrix to the Vector3d paramter values, and sets the other components of the matrix as if this transform were an identity matrix. |
void | set(GMatrix matrix) Sets the matrix values of this transform to the matrix values in the upper 4x4 corner of the GMatrix parameter. |
void | set(Transform3D t1) Sets the matrix, type, and state of this transform to the matrix, type, and state of transform t1. |
void | set(double[] matrix) Sets the matrix values of this transform to the matrix values in the double precision array parameter. |
void | set(float[] matrix) Sets the matrix values of this transform to the matrix values in the single precision array parameter. |
void | set(Matrix4d m1) Sets the matrix values of this transform to the matrix values in the double precision Matrix4d argument. |
void | set(Matrix4f m1) Sets the matrix values of this transform to the matrix values in the single precision Matrix4f argument. |
void | set(Matrix3f m1) Sets the rotational component (upper 3x3) of this transform to the matrix values in the single precision Matrix3f argument; the other elements of this transform are initialized as if this were an identity matrix (i.e., affine matrix with no translational component). |
void | set(Matrix3d m1) Sets the rotational component (upper 3x3) of this transform to the matrix values in the double precision Matrix3d argument; the other elements of this transform are initialized as if this were an identity matrix (ie, affine matrix with no translational component). |
void | set(double scale) Sets the value of this transform to a uniform scale; all of the matrix values are modified. |
void | set(double scale, Vector3d v1) Sets the value of this transform to a scale and translation matrix; the scale is not applied to the translation and all of the matrix values are modified. |
void | set(float scale, Vector3f v1) Sets the value of this transform to a scale and translation matrix; the scale is not applied to the translation and all of the matrix values are modified. |
void | set(Vector3d v1, double scale) Sets the value of this transform to a scale and translation matrix; the translation is scaled by the scale factor and all of the matrix values are modified. |
void | set(Vector3f v1, float scale) Sets the value of this transform to a scale and translation matrix; the translation is scaled by the scale factor and all of the matrix values are modified. |
void | set(Quat4d q1, Vector3d t1, double s) Sets the value of this matrix from the rotation expressed by the quaternion q1, the translation t1, and the scale s. |
void | set(Quat4f q1, Vector3d t1, double s) Sets the value of this matrix from the rotation expressed by the quaternion q1, the translation t1, and the scale s. |
void | set(Quat4f q1, Vector3f t1, float s) Sets the value of this matrix from the rotation expressed by the quaternion q1, the translation t1, and the scale s. |
void | set(Matrix3f m1, Vector3f t1, float s) Sets the value of this matrix from the rotation expressed by the rotation matrix m1, the translation t1, and the scale s. |
void | set(Matrix3f m1, Vector3d t1, double s) Sets the value of this matrix from the rotation expressed by the rotation matrix m1, the translation t1, and the scale s. |
void | set(Matrix3d m1, Vector3d t1, double s) Sets the value of this matrix from the rotation expressed by the rotation matrix m1, the translation t1, and the scale s. |
void | setEuler(Vector3d euler) Sets the rotational component (upper 3x3) of this transform to the rotation matrix converted from the Euler angles provided; the other non-rotational elements are set as if this were an identity matrix. |
void | setIdentity() Sets this transform to the identity matrix. |
void | setRotation(Matrix3d m1) Sets the rotational component (upper 3x3) of this transform to the matrix values in the double precision Matrix3d argument; the other elements of this transform are unchanged; any pre-existing scale will be preserved; the argument matrix m1 will be checked for proper normalization when this transform is internally classified. |
void | setRotation(Matrix3f m1) Sets the rotational component (upper 3x3) of this transform to the matrix values in the single precision Matrix3f argument; the other elements of this transform are unchanged; any pre-existing scale will be preserved; the argument matrix m1 will be checked for proper normalization when this transform is internally classified. |
void | setRotation(Quat4f q1) Sets the rotational component (upper 3x3) of this transform to the matrix equivalent values of the quaternion argument; the other elements of this transform are unchanged; any pre-existing scale in the transform is preserved. |
void | setRotation(Quat4d q1) Sets the rotational component (upper 3x3) of this transform to the matrix equivalent values of the quaternion argument; the other elements of this transform are unchanged; any pre-existing scale in the transform is preserved. |
void | setRotation(AxisAngle4d a1) Sets the rotational component (upper 3x3) of this transform to the matrix equivalent values of the axis-angle argument; the other elements of this transform are unchanged; any pre-existing scale in the transform is preserved. |
void | setRotation(AxisAngle4f a1) Sets the rotational component (upper 3x3) of this transform to the matrix equivalent values of the axis-angle argument; the other elements of this transform are unchanged; any pre-existing scale in the transform is preserved. |
void | setScale(double scale) Sets the scale component of the current transform; any existing scale is first factored out of the existing transform before the new scale is applied. |
void | setScale(Vector3d scale) Sets the possibly non-uniform scale component of the current transform; any existing scale is first factored out of the existing transform before the new scale is applied. |
void | setTranslation(Vector3f trans) Replaces the translational components of this transform to the values in the Vector3f argument; the other values of this transform are not modified. |
void | setTranslation(Vector3d trans) Replaces the translational components of this transform to the values in the Vector3d argument; the other values of this transform are not modified. |
void | transform(Vector4d vec) Transform the vector vec using this Transform and place the result back into vec. |
void | transform(Vector4f vec) Transform the vector vec using this Transform and place the result back into vec. |
void | transform(Point3d point) Transforms the point parameter with this transform and places the result back into point. |
void | transform(Vector3d normal) Transforms the normal parameter by this transform and places the value back into normal. |
void | transform(Point3f point) Transforms the point parameter with this transform and places the result back into point. |
void | transform(Vector3f normal) Transforms the normal parameter by this transform and places the value back into normal. |