MathUtilities.TransformPointFromTo(Transform, Transform, Vector3) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.