|
StandardQuaternionTransform Class |
StandardQuaternionTransform defines a standard translate, rotate and scale transform.
Rotate transform is defined by using a quaternion.
To use rotation around x, y and z axes use the
StandardTransform.
The scale and rotation is done by an optional
PivotPoint.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.TransformationsAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public class StandardQuaternionTransform : Transform
The StandardQuaternionTransform type exposes the following members.
Constructors | Name | Description |
---|
| StandardQuaternionTransform |
Constructor
|
| StandardQuaternionTransform(Single, Single, Single, Single) |
Constructor
|
| StandardQuaternionTransform(Single, Single, Single, Single, Single, Single, Single, Single) |
Constructor
|
TopProperties | Name | Description |
---|
| PivotPoint |
Gets or sets a nullable Vector3 that sets a custom center of rotation and custom scale origin.
For example, this can set to the center of the object's mesh (get by GetCenterPosition(Boolean, Boolean) method).
PivotPoint is null by default. In this case all rotations and scales are done from the coordinate origin (0, 0, 0).
|
| QuaternionW |
Gets or sets the W value of the vector component of the quaternion.
By default the object is rotated around (0, 0, 0) position. To use a custom center of rotation set PivotPoint property,
for example, this can set to the center of the object's mesh (get by GetMeshBoundingBox(Boolean) method).
|
| QuaternionX |
Gets or sets the X value of the vector component of the quaternion.
By default the object is rotated around (0, 0, 0) position. To use a custom center of rotation set PivotPoint property,
for example, this can set to the center of the object's mesh (get by GetMeshBoundingBox(Boolean) method).
|
| QuaternionY |
Gets or sets the Y value of the vector component of the quaternion.
By default the object is rotated around (0, 0, 0) position. To use a custom center of rotation set PivotPoint property,
for example, this can set to the center of the object's mesh (get by GetMeshBoundingBox(Boolean) method).
|
| QuaternionZ |
Gets or sets the Z value of the vector component of the quaternion.
By default the object is rotated around (0, 0, 0) position. To use a custom center of rotation set PivotPoint property,
for example, this can set to the center of the object's mesh (get by GetMeshBoundingBox(Boolean) method).
|
| ScaleX |
Gets or sets a float that specified the scale in the direction of the X axis.
By default the object is scaled from (0, 0, 0) position. To use a custom scale origin set PivotPoint property,
for example, this can set to the center of the object's BoundingBox.
|
| ScaleY |
Gets or sets a float that specified the scale in the direction of the Y axis.
By default the object is scaled from (0, 0, 0) position. To use a custom scale origin set PivotPoint property,
for example, this can set to the center of the object's BoundingBox.
|
| ScaleZ |
Gets or sets a float that specified the scale in the direction of the Z axis.
By default the object is scaled from (0, 0, 0) position. To use a custom scale origin set PivotPoint property,
for example, this can set to the center of the object's BoundingBox.
|
| TranslateX |
Gets or sets a float that specified the translation in X direction.
|
| TranslateY |
Gets or sets a float that specified the translation in Y direction.
|
| TranslateZ |
Gets or sets a float that specified the translation in X direction.
|
TopMethods | Name | Description |
---|
| GetAverageScale |
Returns an average scale that is calculated by averaging the ScaleX, ScaleY and ScaleZ.
|
| GetQuaternion |
Gets the rotation quaternion.
|
| GetScaleFactors |
Returns a Vector3 created from ScaleX, ScaleY, ScaleZ properties.
|
| GetTranslateVector |
Returns a Vector3 created from TranslateX, TranslateY and TranslateZ properties.
|
| GetTranslateVector3D | Obsolete.
Returns a Vector3 created from TranslateX, TranslateY and TranslateZ properties.
|
| Move(Vector3) |
Updates the translate transformation by moving for the specified offsets and updates the transformation matrix.
|
| Move(Single, Single, Single) |
Updates the translate transformation by moving for the specified offsets and updates the transformation matrix.
|
| Reset |
Reset method sets all translation and rotation to zero and all scales to 1.
|
| Scale(Single) |
Scales the existing transformation by multiplying the current scale factors with the specified scaleFactor and updates the transformation matrix.
|
| Scale(Single, Single, Single) |
Scales the existing transformation by multiplying the current scale factors with the specified scale factors and updates the transformation matrix.
|
| SetQuaternion(Quaternion) |
Sets the rotation quaternion.
|
| SetQuaternion(Single, Single, Single, Single) |
Sets the rotation quaternion.
|
| SetScale(Single) |
Sets scale factor for all x, y and z scale factors to the specified uniformScale and updates the transformation matrix.
|
| SetScale(Vector3) |
Sets the scale factors to the specified values and updates the transformation matrix.
|
| SetScale(Single, Single, Single) |
Sets the scale factors to the specified values and updates the transformation matrix.
|
| SetTranslate(Vector3) |
Sets translate transformation values to the specified values and updates the transformation matrix.
|
| SetTranslate(Single, Single, Single) |
Sets translate transformation values to the specified values and updates the transformation matrix.
|
| ToString | (Overrides ObjectToString) |
| UpdateMatrix |
Updates the Matrix4x4 that defines this transformation and is set to Value property.
|
TopSee Also