편집

다음을 통해 공유


MathUtilities.TransformPointFromTo(Transform, Transform, Vector3) Method

Definition

Takes a point in the coordinate space specified by the "from" transform and transforms it to be the correct point in the coordinate space specified by the "to" transform applies rotation, scale and translation.

public:
 static UnityEngine::Vector3 TransformPointFromTo(UnityEngine::Transform ^ from, UnityEngine::Transform ^ to, UnityEngine::Vector3 fromPoint);
public static UnityEngine.Vector3 TransformPointFromTo (UnityEngine.Transform from, UnityEngine.Transform to, UnityEngine.Vector3 fromPoint);
static member TransformPointFromTo : UnityEngine.Transform * UnityEngine.Transform * UnityEngine.Vector3 -> UnityEngine.Vector3
Public Shared Function TransformPointFromTo (from As Transform, to As Transform, fromPoint As Vector3) As Vector3

Parameters

from
UnityEngine.Transform
to
UnityEngine.Transform
fromPoint
UnityEngine.Vector3

Returns

UnityEngine.Vector3

Point to.

Applies to