org.bouncycastle.graphics.rt
Class Transform
java.lang.Object
|
+--javax.vecmath.Matrix4f
|
+--org.bouncycastle.graphics.rt.Transform
- All Implemented Interfaces:
- java.io.Serializable
- public class Transform
- extends Matrix4f
A geometric transform.
Example:
<Transform>
<Scale value="0.1, 0.1, 0.1"/>
<Translate value="-1.5, 1, 0"/>
</Transform>
Document Type Definition:
<!ENTITY %Float "CDATA">
<!ENTITY %Point3f "CDATA">
<!ENTITY %Vector3f "CDATA">
<!ELEMENT Transform (Matrix | Rotate | Scale | Translate)+ >
<!ELEMENT Matrix (#PCDATA)>
<!ELEMENT Rotate EMPTY>
<!ATTLIST Rotate
angle %Float; "0"
axis %Vector3f; "0, 0, 1">
<!ELEMENT Scale EMPTY>
<!ATTLIST Scale
value %Vector3f; "1, 1, 1">
<!ELEMENT Translate EMPTY>
<!ATTLIST Translate
value %Point3f; "0, 0, 0">
- See Also:
- Serialized Form
Fields inherited from class javax.vecmath.Matrix4f |
m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33 |
Method Summary |
void |
alignZAxis(double x,
double y,
double z)
multiply in the necessary translations to rotate our world
so the z axis "becomes" the direction vector represented x, y and z. |
static Transform |
getInstance(RMLReader in)
|
void |
rotate(double x,
double y,
double z,
double theta)
rotate by theta degrees around the axis (x, y, z) |
void |
scale(double x,
double y,
double z)
|
void |
transform(Matrix4f m)
|
void |
translate(double x,
double y,
double z)
|
Methods inherited from class javax.vecmath.Matrix4f |
add, add, add, add, determinant, epsilonEquals, equals, equals, get, get, get, get, get, getColumn, getColumn, getElement, 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, setColumn, setColumn, setColumn, setElement, setIdentity, setRotation, setRotation, setRotation, setRotation, setRotation, setRotationScale, setRow, setRow, setRow, setScale, setTranslation, setZero, sub, sub, toString, transform, transform, transform, transform, transform, transform, transpose, transpose |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Transform
public Transform()
Transform
public Transform(Transform trans)
getInstance
public static Transform getInstance(RMLReader in)
throws java.io.IOException
transform
public void transform(Matrix4f m)
scale
public void scale(double x,
double y,
double z)
translate
public void translate(double x,
double y,
double z)
alignZAxis
public void alignZAxis(double x,
double y,
double z)
- multiply in the necessary translations to rotate our world
so the z axis "becomes" the direction vector represented x, y and z.
rotate
public void rotate(double x,
double y,
double z,
double theta)
- rotate by theta degrees around the axis (x, y, z)