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

math.AffineTransform

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 static AffineTransform AffineTransform(float3 translation, quaternion rotation);

Parameters

Parameter Description
translation The AffineTransform translation.
rotation The AffineTransform rotation.

Returns

AffineTransform The AffineTransform given the translation vector and rotation quaternion.

Description

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


Declaration

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

Parameters

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

Returns

AffineTransform The AffineTransform given the translation vector, rotation quaternion and scale vector.

Description

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


Declaration

public static AffineTransform AffineTransform(float3 translation, float3x3 rotationScale);

Parameters

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

Returns

AffineTransform The AffineTransform given the translation vector and float3x3 matrix.

Description

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


Declaration

public static AffineTransform AffineTransform(float3x3 rotationScale);

Parameters

Parameter Description
rotationScale The rotation and scale matrix.

Returns

AffineTransform The AffineTransform given a float3x3 matrix.

Description

Returns an AffineTransform constructed from a float3x3 matrix representing both rotation and scale.


Declaration

public static AffineTransform AffineTransform(float4x4 m);

Parameters

Parameter Description
m The float4x4 matrix.

Returns

AffineTransform The AffineTransform given a float4x4 matrix.

Description

Returns an AffineTransform constructed from a float4x4 matrix.


Declaration

public static AffineTransform AffineTransform(float3x4 m);

Parameters

Parameter Description
m The float3x4 matrix.

Returns

AffineTransform The AffineTransform given a float3x4 matrix.

Description

Returns an AffineTransform constructed from a float3x4 matrix.


Declaration

public static AffineTransform AffineTransform(RigidTransform rigid);

Parameters

Parameter Description
rigid The RigidTransform.

Returns

AffineTransform The AffineTransform given a RigidTransform.

Description

Returns an AffineTransform constructed from a RigidTransform.