Package com.aspose.threed
Class Transform
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Transform
-
public class Transform extends A3DObject
A transform contains information that allow access to object's translate/scale/rotation or transform matrix at minimum cost This is used by local transform.
-
-
Method Summary
Modifier and Type Method Description Vector3
getEulerAngles()
Gets the rotation represented in euler angles, measured in degreeVector3
getPostRotation()
Gets the post-rotation represented in degreeVector3
getPreRotation()
Gets the pre-rotation represented in degreeQuaternion
getRotation()
Gets the rotation represented in quaternion.Vector3
getScale()
Gets the scaleMatrix4
getTransformMatrix()
Gets the transform matrix.Vector3
getTranslation()
Gets the translationTransform
setEulerAngles(double rx, double ry, double rz)
Sets the euler angles in degrees of current transform.void
setEulerAngles(Vector3 value)
Sets the rotation represented in euler angles, measured in degreevoid
setPostRotation(Vector3 value)
Sets the post-rotation represented in degreevoid
setPreRotation(Vector3 value)
Sets the pre-rotation represented in degreeTransform
setRotation(double rw, double rx, double ry, double rz)
Sets the rotation(as quaternion components) of current transform.void
setRotation(Quaternion value)
Sets the rotation represented in quaternion.Transform
setScale(double sx, double sy, double sz)
Sets the scale of current transform.void
setScale(Vector3 value)
Sets the scalevoid
setTransformMatrix(Matrix4 value)
Sets the transform matrix.Transform
setTranslation(double tx, double ty, double tz)
Sets the translation of current transform.void
setTranslation(Vector3 value)
Sets the translation-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Method Detail
-
getTranslation
public Vector3 getTranslation()
Gets the translation
-
setTranslation
public void setTranslation(Vector3 value)
Sets the translation- Parameters:
value
- New value
-
setTranslation
public Transform setTranslation(double tx, double ty, double tz)
Sets the translation of current transform.- Parameters:
tx
-ty
-tz
-
-
setScale
public Transform setScale(double sx, double sy, double sz)
Sets the scale of current transform.- Parameters:
sx
-sy
-sz
-
-
setEulerAngles
public Transform setEulerAngles(double rx, double ry, double rz)
Sets the euler angles in degrees of current transform.- Parameters:
rx
-ry
-rz
-
-
setRotation
public Transform setRotation(double rw, double rx, double ry, double rz)
Sets the rotation(as quaternion components) of current transform.- Parameters:
rw
-rx
-ry
-rz
-
-
getScale
public Vector3 getScale()
Gets the scale
-
setScale
public void setScale(Vector3 value)
Sets the scale- Parameters:
value
- New value
-
getPreRotation
public Vector3 getPreRotation()
Gets the pre-rotation represented in degree
-
setPreRotation
public void setPreRotation(Vector3 value)
Sets the pre-rotation represented in degree- Parameters:
value
- New value
-
getPostRotation
public Vector3 getPostRotation()
Gets the post-rotation represented in degree
-
setPostRotation
public void setPostRotation(Vector3 value)
Sets the post-rotation represented in degree- Parameters:
value
- New value
-
getEulerAngles
public Vector3 getEulerAngles()
Gets the rotation represented in euler angles, measured in degree
-
setEulerAngles
public void setEulerAngles(Vector3 value)
Sets the rotation represented in euler angles, measured in degree- Parameters:
value
- New value
-
getRotation
public Quaternion getRotation()
Gets the rotation represented in quaternion.
-
setRotation
public void setRotation(Quaternion value)
Sets the rotation represented in quaternion.- Parameters:
value
- New value
-
getTransformMatrix
public Matrix4 getTransformMatrix()
Gets the transform matrix.
-
setTransformMatrix
public void setTransformMatrix(Matrix4 value)
Sets the transform matrix.- Parameters:
value
- New value
-
-