Class RMTransform3D
java.lang.Object
com.inductiveautomation.rm.graphics.RMTransform3D
- All Implemented Interfaces:
Cloneable
This class represents a 3D transform.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
fromArray
(double[][] m2) Loads the transform flom a float array.invert()
multiply
(RMTransform3D aTransform) Multiplies receiver by given transform.perspective
(double d) Apply perspective transform.rotate
(double rx, double ry, double rz) Rotate x,y,z with three Euler angles (same as rotateX(rx).rotateY(ry).rotateZ(rz))rotate
(RMVector3D anAxis, double anAngle) Rotate about arbitrary axis.rotateX
(double anAngle) Rotate x axis by given degrees.rotateY
(double anAngle) Rotate y axis by given degrees.rotateZ
(double anAngle) Rotate z axis by given degrees.skew
(double skx, double sky) Skew by the given degrees.double[][]
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
(double x, double y, double 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
-
m
public double[][] m
-
-
Constructor Details
-
RMTransform3D
public RMTransform3D()Creates a transform3d with the identity matrix.
-
-
Method Details
-
multiply
Multiplies receiver by given transform. -
translate
Translates by given x, y & z. -
rotateX
Rotate x axis by given degrees. -
rotateY
Rotate y axis by given degrees. -
rotateZ
Rotate z axis by given degrees. -
rotate
Rotate about arbitrary axis. -
rotate
Rotate x,y,z with three Euler angles (same as rotateX(rx).rotateY(ry).rotateZ(rz)) -
worldAlign
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. -
skew
Skew by the given degrees. -
perspective
Apply perspective transform. -
invert
-
transform
Transforms a given point (and returns it as a convenience). -
transform
Transforms a given vector (and returns it as a convenience). -
toArray
public double[][] toArray()Returns a float array for the transform. -
fromArray
Loads the transform flom a float array. -
clone
-