Package com.reportmill.graphics
Class RMTransform3D
- java.lang.Object
- 
- com.reportmill.graphics.RMTransform3D
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class RMTransform3D extends java.lang.Object implements java.lang.CloneableThis class represents a 3D transform.
- 
- 
Field SummaryFields Modifier and Type Field Description float[][]m
 - 
Constructor SummaryConstructors Constructor Description RMTransform3D()Creates a transform3d with the identity matrix.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()RMTransform3DfromArray(float[][] m2)Loads the transform flom a float array.RMTransform3Dinvert()RMTransform3Dmultiply(RMTransform3D aTransform)Multiplies receiver by given transform.RMTransform3Dperspective(float d)Apply perspective transform.RMTransform3Drotate(float rx, float ry, float rz)Rotate x,y,z with three Euler angles (same as rotateX(rx).rotateY(ry).rotateZ(rz))RMTransform3Drotate(RMVector3D anAxis, float anAngle)Rotate about arbitrary axis.RMTransform3DrotateX(float anAngle)Rotate x axis by given degrees.RMTransform3DrotateY(float anAngle)Rotate y axis by given degrees.RMTransform3DrotateZ(float anAngle)Rotate z axis by given degrees.RMTransform3Dskew(float skx, float sky)Skew by the given degrees.float[][]toArray()Returns a float array for the transform.RMPoint3Dtransform(RMPoint3D aPoint)Transforms a given point (and returns it as a convenience).RMVector3Dtransform(RMVector3D aVector)Transforms a given vector (and returns it as a convenience).RMTransform3Dtranslate(float x, float y, float z)Translates by given x, y & z.RMTransform3DworldAlign(RMPoint3D originPt)Returns a matrix whose axes are aligned with the world (screen) coordinate system.
 
- 
- 
- 
Method Detail- 
multiplypublic RMTransform3D multiply(RMTransform3D aTransform) Multiplies receiver by given transform.
 - 
translatepublic RMTransform3D translate(float x, float y, float z) Translates by given x, y & z.
 - 
rotateXpublic RMTransform3D rotateX(float anAngle) Rotate x axis by given degrees.
 - 
rotateYpublic RMTransform3D rotateY(float anAngle) Rotate y axis by given degrees.
 - 
rotateZpublic RMTransform3D rotateZ(float anAngle) Rotate z axis by given degrees.
 - 
rotatepublic RMTransform3D rotate(RMVector3D anAxis, float anAngle) Rotate about arbitrary axis.
 - 
rotatepublic RMTransform3D rotate(float rx, float ry, float rz) Rotate x,y,z with three Euler angles (same as rotateX(rx).rotateY(ry).rotateZ(rz))
 - 
worldAlignpublic RMTransform3D worldAlign(RMPoint3D originPt) Returns a matrix whose axes are aligned with the world (screen) coordinate system. All rotations & skews are removed, and perspective is replaced by uniform scaling.
 - 
skewpublic RMTransform3D skew(float skx, float sky) Skew by the given degrees.
 - 
perspectivepublic RMTransform3D perspective(float d) Apply perspective transform.
 - 
invertpublic RMTransform3D invert() 
 - 
transformpublic RMPoint3D transform(RMPoint3D aPoint) Transforms a given point (and returns it as a convenience).
 - 
transformpublic RMVector3D transform(RMVector3D aVector) Transforms a given vector (and returns it as a convenience).
 - 
toArraypublic float[][] toArray() Returns a float array for the transform.
 - 
fromArraypublic RMTransform3D fromArray(float[][] m2) Loads the transform flom a float array.
 - 
clonepublic java.lang.Object clone() - Overrides:
- clonein class- java.lang.Object
 
 
- 
 
-