Editar

Compartilhar via


VectorExtensions.TransformPoint(Vector3, Vector3, Quaternion, Vector3) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static UnityEngine::Vector3 TransformPoint(UnityEngine::Vector3 point, UnityEngine::Vector3 translation, UnityEngine::Quaternion rotation, UnityEngine::Vector3 lossyScale);
public static UnityEngine.Vector3 TransformPoint (this UnityEngine.Vector3 point, UnityEngine.Vector3 translation, UnityEngine.Quaternion rotation, UnityEngine.Vector3 lossyScale);
static member TransformPoint : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Quaternion * UnityEngine.Vector3 -> UnityEngine.Vector3
<Extension()>
Public Function TransformPoint (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.

Applies to