Struct AffineTransform
An affine transformation type.
Inherited Members
Namespace: Unity.Mathematics
Assembly: Unity.Mathematics.dll
Syntax
[Serializable]
public struct AffineTransform : IEquatable<AffineTransform>, IFormattable
  Constructors
| Name | Description | 
|---|---|
| AffineTransform(RigidTransform) | Constructs an AffineTransform from a RigidTransform.  | 
      
| AffineTransform(float3, float3x3) | Constructs an AffineTransform from a translation represented by float3 vector and a float3x3 matrix representing both rotation and scale.  | 
      
| AffineTransform(float3, quaternion) | Constructs an AffineTransform from a translation represented by a float3 vector and rotation represented by a unit quaternion.  | 
      
| AffineTransform(float3, quaternion, float3) | Constructs an AffineTransform from a translation represented by a float3 vector, rotation represented by a unit quaternion and scale represented by a float3 vector.  | 
      
| AffineTransform(float3x3) | Constructs an AffineTransform from float3x3 matrix representating both rotation and scale.  | 
      
| AffineTransform(float3x4) | Constructs an AffineTransform from a float3x4 matrix.  | 
      
| AffineTransform(float4x4) | 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(AffineTransform) | Returns true if the AffineTransform is equal to a given AffineTransform, false otherwise.  | 
      
| GetHashCode() | Returns a hash code for the AffineTransform.  | 
      
| ToString() | Returns a string representation of the AffineTransform.  | 
      
| ToString(string, IFormatProvider) | Returns a string representation of the AffineTransform using a specified format and culture-specific format information.  | 
      
Operators
| Name | Description | 
|---|---|
| implicit operator float3x4(AffineTransform) | Implicit float3x4 cast operator.  | 
      
| implicit operator float4x4(AffineTransform) | Implicit float4x4 cast operator.  |