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

AffineTransform Constructor

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

Declaration

public AffineTransform(float3 translation, quaternion rotation);

Parameters

Parameter Description
translation The translation vector.
rotation The rotation quaternion.

Description

Constructs an AffineTransform from a translation represented by a float3 vector and rotation represented by a unit quaternion.


Declaration

public AffineTransform(float3 translation, quaternion rotation, float3 scale);

Parameters

Parameter Description
translation The translation vector.
rotation The rotation quaternion.
scale The scale vector.

Description

Constructs an AffineTransform from a translation represented by a float3 vector, rotation represented by a unit quaternion and scale represented by a float3 vector.


Declaration

public AffineTransform(float3 translation, float3x3 rotationScale);

Parameters

Parameter Description
translation The translation vector.
rotationScale The rotation and scale matrix.

Description

Constructs an AffineTransform from a translation represented by float3 vector and a float3x3 matrix representing both rotation and scale.


Declaration

public AffineTransform(float3x3 rotationScale);

Parameters

Parameter Description
rotationScale The rotation and scale matrix.

Description

Constructs an AffineTransform from float3x3 matrix representating both rotation and scale.


Declaration

public AffineTransform(RigidTransform rigid);

Parameters

Parameter Description
rigid The RigidTransform.

Description

Constructs an AffineTransform from a RigidTransform.


Declaration

public AffineTransform(float3x4 m);

Parameters

Parameter Description
m The float3x4 matrix.

Description

Constructs an AffineTransform from a float3x4 matrix.


Declaration

public AffineTransform(float4x4 m);

Parameters

Parameter Description
m The float4x4 matrix.

Description

Constructs an AffineTransform from a float4x4 matrix.