Edit

Share via


VectorExtensions.InverseTransformPoint Method

Definition

Apply an inverse transformation to a given point using the specified translation, rotation and scale.

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector3 InverseTransformPoint(UnityEngine::Vector3 point, UnityEngine::Vector3 translation, UnityEngine::Quaternion rotation, UnityEngine::Vector3 lossyScale);
public static UnityEngine.Vector3 InverseTransformPoint (this UnityEngine.Vector3 point, UnityEngine.Vector3 translation, UnityEngine.Quaternion rotation, UnityEngine.Vector3 lossyScale);
static member InverseTransformPoint : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Quaternion * UnityEngine.Vector3 -> UnityEngine.Vector3
<Extension()>
Public Function InverseTransformPoint (point As Vector3, translation As Vector3, rotation As Quaternion, lossyScale As Vector3) As Vector3

Parameters

point
UnityEngine.Vector3

The 3D point to be altered.

translation
UnityEngine.Vector3

The 3D vector containing the translation amount.

rotation
UnityEngine.Quaternion

The quaternion representing the rotation to be preformed.

lossyScale
UnityEngine.Vector3

The 3D vector containing the scale amount.

Returns

UnityEngine.Vector3

A new 3D vector containing the altered point.

Remarks

This will preform the inverse operations of the TransformPoint(Vector3, Vector3, Quaternion, Vector3) function.

Applies to