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

NameDescription
Public methodUxrCatmullRomSpline

Properties

NameDescription
Public propertyHasValidData Does the object contain valid data in order to evaluate the curve? (Overrides UxrSpline.HasValidData.)

Methods

NameDescription
Public methodCreate Creates a spline. If UsePrecomputedSampleCount > 0 it will also precompute samples in order to evaluate the spline using arc-length parameter.
Public methodEvaluate(Single, Vector3) Evaluates the curve (Overrides UxrSpline.Evaluate(Single, Vector3).)
Public methodStatic memberEvaluate(Vector3, Vector3, Vector3, Vector3, Single) Smoothly interpolates, using Catmull-Rom equations, from p1 to p2 using additional p0 and p3 points.

Extension Methods

NameDescription
Public Extension MethodThrowIfNull Throws an exception if the object is null. (Defined by ObjectExt.)

See Also

Reference

UltimateXR.Animation.Splines Namespace