Package com.reportmill.graphics
Class RMTransform3D
java.lang.Object
com.reportmill.graphics.RMTransform3D
- All Implemented Interfaces:
- Cloneable
This class represents a 3D transform.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()fromArray(float[][] m2) Loads the transform flom a float array.invert()multiply(RMTransform3D aTransform) Multiplies receiver by given transform.perspective(float d) Apply perspective transform.rotate(float rx, float ry, float rz) Rotate x,y,z with three Euler angles (same as rotateX(rx).rotateY(ry).rotateZ(rz))rotate(RMVector3D anAxis, float anAngle) Rotate about arbitrary axis.rotateX(float anAngle) Rotate x axis by given degrees.rotateY(float anAngle) Rotate y axis by given degrees.rotateZ(float anAngle) Rotate z axis by given degrees.skew(float skx, float sky) Skew by the given degrees.float[][]toArray()Returns a float array for the transform.Transforms a given point (and returns it as a convenience).transform(RMVector3D aVector) Transforms a given vector (and returns it as a convenience).translate(float x, float y, float z) Translates by given x, y & z.worldAlign(RMPoint3D originPt) Returns a matrix whose axes are aligned with the world (screen) coordinate system.
- 
Field Details- 
mpublic float[][] m
 
- 
- 
Constructor Details- 
RMTransform3Dpublic RMTransform3D()Creates a transform3d with the identity matrix.
 
- 
- 
Method Details- 
multiplyMultiplies receiver by given transform.
- 
translateTranslates by given x, y & z.
- 
rotateXRotate x axis by given degrees.
- 
rotateYRotate y axis by given degrees.
- 
rotateZRotate z axis by given degrees.
- 
rotateRotate about arbitrary axis.
- 
rotateRotate x,y,z with three Euler angles (same as rotateX(rx).rotateY(ry).rotateZ(rz))
- 
worldAlignReturns a matrix whose axes are aligned with the world (screen) coordinate system. All rotations & skews are removed, and perspective is replaced by uniform scaling.
- 
skewSkew by the given degrees.
- 
perspectiveApply perspective transform.
- 
invert
- 
transformTransforms a given point (and returns it as a convenience).
- 
transformTransforms a given vector (and returns it as a convenience).
- 
toArraypublic float[][] toArray()Returns a float array for the transform.
- 
fromArrayLoads the transform flom a float array.
- 
clone
 
-