UxrCatmullRomSpline Class
Catmull-Rom spline. It is used to interpolate smoothly between a set of points.
Inheritance Hierarchy
System.Object
UltimateXR.Animation.Splines.UxrSpline
UltimateXR.Animation.Splines.UxrCatmullRomSpline
Namespace: UltimateXR.Animation.Splines
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public class UxrCatmullRomSpline : UxrSpline
The UxrCatmullRomSpline type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UxrCatmullRomSpline |
Properties
Name | Description | |
---|---|---|
HasValidData | Does the object contain valid data in order to evaluate the curve? (Overrides UxrSpline.HasValidData.) |
Methods
Name | Description | |
---|---|---|
Create | Creates a spline. If UsePrecomputedSampleCount > 0 it will also precompute samples in order to evaluate the spline using arc-length parameter. | |
Evaluate(Single, Vector3) | Evaluates the curve (Overrides UxrSpline.Evaluate(Single, Vector3).) | |
Evaluate(Vector3, Vector3, Vector3, Vector3, Single) | Smoothly interpolates, using Catmull-Rom equations, from p1 to p2 using additional p0 and p3 points. |
Extension Methods
Name | Description | |
---|---|---|
ThrowIfNull | Throws an exception if the object is null. (Defined by ObjectExt.) |