Struct AffineTransform
An affine transformation type.
Inherited Members
Namespace: Unity.Mathematics
Assembly: solution.dll
Syntax
[Serializable]
public struct AffineTransform : IEquatable<AffineTransform>, IFormattable
Constructors
Name | Description |
---|---|
Affine |
Constructs an AffineTransform from a RigidTransform. |
Affine |
Constructs an AffineTransform from a translation represented by float3 vector and a float3x3 matrix representing both rotation and scale. |
Affine |
Constructs an AffineTransform from a translation represented by a float3 vector and rotation represented by a unit quaternion. |
Affine |
Constructs an AffineTransform from a translation represented by a float3 vector, rotation represented by a unit quaternion and scale represented by a float3 vector. |
Affine |
Constructs an AffineTransform from float3x3 matrix representating both rotation and scale. |
Affine |
Constructs an AffineTransform from a float3x4 matrix. |
Affine |
Constructs an AffineTransform from a float4x4 matrix. |
Fields
Name | Description |
---|---|
identity | An AffineTransform representing the identity transform. |
rs | The rotation and scale part of the affine transformation. |
t | The translation part of the affine transformation. |
zero | An AffineTransform zero value. |
Methods
Name | Description |
---|---|
Equals(object) | Returns true if the AffineTransform is equal to a given AffineTransform, false otherwise. |
Equals(Affine |
Returns true if the AffineTransform is equal to a given AffineTransform, false otherwise. |
Get |
Returns a hash code for the AffineTransform. |
To |
Returns a string representation of the AffineTransform. |
To |
Returns a string representation of the AffineTransform using a specified format and culture-specific format information. |
Operators
Name | Description |
---|---|
implicit operator float3x4(Affine |
Implicit float3x4 cast operator. |
implicit operator float4x4(Affine |
Implicit float4x4 cast operator. |