Table of Contents

Class CatmullRomSpline

public class CatmullRomSpline : AbstractSpline, ISpline, ICurve
Inheritance
CatmullRomSpline
Implements
Inherited Members
Extension Methods

Constructors

CatmullRomSpline(List<Vector3>)

Creates a Catmull-Rom spline.

public CatmullRomSpline(List<Vector3> points)

Parameters

points List<Vector3>

The sequence of points that will create the spline.

CatmullRomSpline(params Vector3[])

Creates a Catmull-Rom spline.

public CatmullRomSpline(params Vector3[] points)

Parameters

points Vector3[]

The sequence of points that will create the spline.

Properties

MinPoints

protected override int MinPoints { get; }

Property Value

int

Methods

GetPoint(float)

public override Vector3 GetPoint(float t)

Parameters

t float

Returns

Vector3

GetPoint(float, Vector3, Vector3, Vector3, Vector3)

public static Vector3 GetPoint(float t, Vector3 startControl, Vector3 startPoint, Vector3 endPoint, Vector3 endControl)

Parameters

t float
startControl Vector3
startPoint Vector3
endPoint Vector3
endControl Vector3

Returns

Vector3