Operator Multiply
Multiply(Quaternion, Quaternion)
Multiplies a quaternion by another.
Declaration
public static Quaternion operator *(Quaternion left, Quaternion right)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | left | The first quaternion to multiply. |
Quaternion | right | The second quaternion to multiply. |
Returns
Type | Description |
---|---|
Quaternion | The multiplied quaternion. |
Multiply(Quaternion, Vector3)
Rotates a point using a quaternion.
Declaration
public static Vector3 operator *(Quaternion rotation, Vector3 point)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | rotation | The quaternion to rotate the point with. |
Vector3 | point | The point to rotate. |
Returns
Type | Description |
---|---|
Vector3 | The rotated point coordinates. |
Multiply(Quaternion, Single)
Scales a quaternion by the given value.
Declaration
public static Quaternion operator *(Quaternion quaternion, float scale)
Parameters
Type | Name | Description |
---|---|---|
Quaternion | quaternion | The quaternion to scale. |
System.Single | scale | The amount by which to scale the quaternion. |
Returns
Type | Description |
---|---|
Quaternion | The scaled quaternion. |
Multiply(Single, Quaternion)
Scales a quaternion by the given value.
Declaration
public static Quaternion operator *(float scale, Quaternion quaternion)
Parameters
Type | Name | Description |
---|---|---|
System.Single | scale | The amount by which to scale the quaternion. |
Quaternion | quaternion | The quaternion to scale. |
Returns
Type | Description |
---|---|
Quaternion | The scaled quaternion. |