LineUtility.InterpolateCatmullRomPoints 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.
Interpolate the provided points using Catmull Rom algorithm.
public:
static UnityEngine::Vector3 InterpolateCatmullRomPoints(UnityEngine::Vector3 point1, UnityEngine::Vector3 point2, UnityEngine::Vector3 point3, UnityEngine::Vector3 point4, float normalizedLength);
public static UnityEngine.Vector3 InterpolateCatmullRomPoints (UnityEngine.Vector3 point1, UnityEngine.Vector3 point2, UnityEngine.Vector3 point3, UnityEngine.Vector3 point4, float normalizedLength);
static member InterpolateCatmullRomPoints : UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 * UnityEngine.Vector3 * single -> UnityEngine.Vector3
Public Function InterpolateCatmullRomPoints (point1 As Vector3, point2 As Vector3, point3 As Vector3, point4 As Vector3, normalizedLength As Single) As Vector3
Parameters
- point1
- UnityEngine.Vector3
- point2
- UnityEngine.Vector3
- point3
- UnityEngine.Vector3
- point4
- UnityEngine.Vector3
- normalizedLength
- Single
the normalized length along the line to calculate the point.
Returns
UnityEngine.Vector3
The calculated point found along the normalized length.