Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

AffineTransform

struct in Unity.Mathematics

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

An affine transformation type.

Static Properties

Property Description
identityAn AffineTransform representing the identity transform.
zero An AffineTransform zero value.

Properties

Property Description
rs The rotation and scale part of the affine transformation.
t The translation part of the affine transformation.

Constructors

Constructor Description
AffineTransformConstructs an AffineTransform from a translation represented by a float3 vector and rotation represented by a unit quaternion.

Public Methods

Method Description
EqualsReturns true if the AffineTransform is equal to a given AffineTransform, false otherwise.
GetHashCodeReturns a hash code for the AffineTransform.
ToStringReturns a string representation of the AffineTransform.

Operators

Operator Description
float3x4Implicit float3x4 cast operator.
float4x4Implicit float4x4 cast operator.