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

math.mul

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 mul(AffineTransform a, AffineTransform b);

Parameters

Parameter Description
a The AffineTransform on the left.
b The AffineTransform on the right.

Returns

AffineTransform The AffineTransform of a transforming b.

Description

Returns the result of transforming the AffineTransform b by the AffineTransform a.


Declaration

public static AffineTransform mul(float3x3 a, AffineTransform b);

Parameters

Parameter Description
a The float3x3 matrix on the left.
b The AffineTransform on the right.

Returns

AffineTransform The AffineTransform of a transforming b.

Description

Returns the result of transforming the AffineTransform b by a float3x3 matrix a.


Declaration

public static AffineTransform mul(AffineTransform a, float3x3 b);

Parameters

Parameter Description
a The AffineTransform on the left.
b The float3x3 matrix on the right.

Returns

AffineTransform The AffineTransform of a transforming b.

Description

Returns the result of transforming the float3x3 b by an AffineTransform a.


Declaration

public static float4 mul(AffineTransform a, float4 pos);

Parameters

Parameter Description
a The AffineTransform.
pos The position to be transformed.

Returns

float4 The transformed position.

Description

Returns the result of transforming a float4 homogeneous coordinate by an AffineTransform.


Declaration

public static quaternion mul(quaternion a, quaternion b);

Parameters

Parameter Description
a The quaternion on the left.
b The quaternion on the right.

Returns

quaternion The result of transforming quaternion b by the quaternion a.

Description

Returns the result of transforming the quaternion b by the quaternion a.


Declaration

public static float3 mul(quaternion q, float3 v);

Parameters

Parameter Description
q The quaternion transformation.
v The vector to transform.

Returns

float3 The transformation of vector v by quaternion q.

Description

Returns the result of transforming a vector by a quaternion.


Declaration

public static RigidTransform mul(RigidTransform a, RigidTransform b);

Parameters

Parameter Description
a The RigidTransform on the left.
b The RigidTransform on the right.

Returns

RigidTransform The RigidTransform of a transforming b.

Description

Returns the result of transforming the RigidTransform b by the RigidTransform a.


Declaration

public static float4 mul(RigidTransform a, float4 pos);

Parameters

Parameter Description
a The RigidTransform.
pos The position to be transformed.

Returns

float4 The transformed position.

Description

Returns the result of transforming a float4 homogeneous coordinate by a RigidTransform.