public final class DTransform extends java.lang.Object implements Savable, java.lang.Cloneable, java.io.Serializable
Constructor and Description |
---|
DTransform() |
DTransform(Transform transform) |
Modifier and Type | Method and Description |
---|---|
DTransform |
clone() |
DQuaternion |
getRotation()
Return the rotation quaternion in this matrix.
|
Vector3d |
getScale()
Return the scale vector in this matrix.
|
Vector3d |
getTranslation()
Return the translation vector in this matrix.
|
void |
read(JmeImporter e) |
DTransform |
setRotation(DQuaternion rot)
Sets this rotation to the given DQuaternion value.
|
DTransform |
setScale(float scale)
Sets this scale to the given value.
|
DTransform |
setScale(Vector3d scale)
Sets this scale to the given value.
|
DTransform |
setTranslation(Vector3d trans)
Sets this translation to the given value.
|
Matrix |
toMatrix() |
java.lang.String |
toString() |
Transform |
toTransform() |
void |
write(JmeExporter e) |
public DTransform()
public DTransform(Transform transform)
public Transform toTransform()
public Matrix toMatrix()
public DTransform setTranslation(Vector3d trans)
trans
- The new translation for this matrix.public DTransform setRotation(DQuaternion rot)
rot
- The new rotation for this matrix.public DTransform setScale(Vector3d scale)
scale
- The new scale for this matrix.public DTransform setScale(float scale)
scale
- The new scale for this matrix.public Vector3d getTranslation()
public DQuaternion getRotation()
public Vector3d getScale()
public java.lang.String toString()
toString
in class java.lang.Object
public void write(JmeExporter e) throws java.io.IOException
public void read(JmeImporter e) throws java.io.IOException
public DTransform clone()
clone
in class java.lang.Object