Click or drag to resize
Ab4d.SharpEngine logo

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
SystemObject
  Ab4d.SharpEngine.TransformationsTransform
    Ab4d.SharpEngine.TransformationsStandardQuaternionTransform

Namespace: Ab4d.SharpEngine.Transformations
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class StandardQuaternionTransform : Transform

The StandardQuaternionTransform type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyPivotPoint 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 GetMeshBoundingBox(Boolean) method). PivotPoint is null by default. In this case all rotations and scales are done from the coordinate origin (0, 0, 0).
Public propertyQuaternionW 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).
Public propertyQuaternionX 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).
Public propertyQuaternionY 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).
Public propertyQuaternionZ 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).
Public propertyScaleX 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.
Public propertyScaleY 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.
Public propertyScaleZ 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.
Public propertyTranslateX Gets or sets a float that specified the translation in X direction.
Public propertyTranslateY Gets or sets a float that specified the translation in Y direction.
Public propertyTranslateZ Gets or sets a float that specified the translation in X direction.
Top
Methods
 NameDescription
Public methodGetTranslateVector3D Returns a Vector3 created from TranslateX, TranslateY and TranslateZ properties.
Public methodMove Updates the translate transformation by moving for the specified offsets and updates the transformation matrix.
Public methodReset Reset method sets all translation and rotation to zero and all scales to 1.
Public methodScale(Single) Scales the existing transformation by multiplying the current scale factors with the specified scaleFactor and updates the transformation matrix.
Public methodScale(Single, Single, Single) Scales the existing transformation by multiplying the current scale factors with the specified scale factors and updates the transformation matrix.
Public methodSetQuaternion(Quaternion) Sets the rotation quaternion.
Public methodSetQuaternion(Single, Single, Single, Single) Sets the rotation quaternion.
Public methodSetScale(Single) Sets scale factor for all x, y and z scale factors to the specified uniformScale and updates the transformation matrix.
Public methodSetScale(Single, Single, Single) Sets the scale factors to the specified values and updates the transformation matrix.
Public methodSetTranslate Sets translate transformation values to the specified values and updates the transformation matrix.
Public methodToString
(Overrides ObjectToString)
Protected methodUpdateMatrix Updates the Matrix4x4 that defines this transformation and is set to Value property.
Top
See Also