public class Transform extends A3DObject
name, properties
Modifier and Type | Method and Description |
---|---|
Vector3 |
getEulerAngles()
Gets the rotation represented in euler angles, measured in degree
|
Vector3 |
getGeometricRotation()
Gets the geometric euler rotation(measured in degree).
|
Vector3 |
getGeometricScaling()
Gets the geometric scaling.
|
Vector3 |
getGeometricTranslation()
Gets the geometric translation.
|
Vector3 |
getPostRotation()
Gets the post-rotation represented in degree
|
Vector3 |
getPreRotation()
Gets the pre-rotation represented in degree
|
Quaternion |
getRotation()
Gets the rotation represented in quaternion.
|
Vector3 |
getScale()
Gets the scale
|
Matrix4 |
getTransformMatrix()
Gets the transform matrix.
|
Vector3 |
getTranslation()
Gets the translation
|
Transform |
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 degree
|
void |
setGeometricRotation(Vector3 value)
Sets the geometric euler rotation(measured in degree).
|
void |
setGeometricScaling(Vector3 value)
Sets the geometric scaling.
|
void |
setGeometricTranslation(Vector3 value)
Sets the geometric translation.
|
void |
setPostRotation(Vector3 value)
Sets the post-rotation represented in degree
|
void |
setPreRotation(Vector3 value)
Sets the pre-rotation represented in degree
|
Transform |
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 scale
|
void |
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
|
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public Vector3 getGeometricTranslation()
public void setGeometricTranslation(Vector3 value)
value
- New valuepublic Vector3 getGeometricScaling()
public void setGeometricScaling(Vector3 value)
value
- New valuepublic Vector3 getGeometricRotation()
public void setGeometricRotation(Vector3 value)
value
- New valuepublic Vector3 getTranslation()
public void setTranslation(Vector3 value)
value
- New valuepublic Transform setTranslation(double tx, double ty, double tz)
tx
- ty
- tz
- public Transform setScale(double sx, double sy, double sz)
sx
- sy
- sz
- public Transform setEulerAngles(double rx, double ry, double rz)
rx
- ry
- rz
- public Transform setRotation(double rw, double rx, double ry, double rz)
rw
- rx
- ry
- rz
- public Vector3 getScale()
public void setScale(Vector3 value)
value
- New valuepublic Vector3 getPreRotation()
public void setPreRotation(Vector3 value)
value
- New valuepublic Vector3 getPostRotation()
public void setPostRotation(Vector3 value)
value
- New valuepublic Vector3 getEulerAngles()
public void setEulerAngles(Vector3 value)
value
- New valuepublic Quaternion getRotation()
public void setRotation(Quaternion value)
value
- New valuepublic Matrix4 getTransformMatrix()
public void setTransformMatrix(Matrix4 value)
value
- New value