CatmullRomPath class
A smooth curve passing through every one of a list of points.
The curve interpolates its control points with uniform Catmull-Rom
segments, so positionAt returns a control point exactly at that
point's natural parameter.
Constructors
-
CatmullRomPath(List<
Vector3> points) -
Creates a Catmull-Rom curve through
points, which is copied. At least two points are required.
Properties
Methods
-
frameAt(
double t) → ScenePathFrame -
An oriented frame at natural parameter
t(clamped to0..1).inherited -
frameAtDistance(
double d) → ScenePathFrame -
An oriented frame at arc-length distance
d(clamped to0..length).inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parameterAtDistance(
double d) → double -
The natural parameter at arc-length distance
d(clamped to0..length).inherited -
positionAt(
double t) → Vector3 -
The point on the curve at natural parameter
t(clamped to0..1).override -
positionAtDistance(
double d) → Vector3 -
The point at arc-length distance
d(clamped to0..length).inherited -
sample(
int count, {bool evenlySpaced = false}) → List< Vector3> -
Returns
countpoints along the curve.inherited -
sampleParameters(
) → List< double> -
The natural parameters at which the curve is sampled when baking
the arc-length and frame tables. Strictly increasing, starting at
0and ending at1.override -
tangentAt(
double t) → Vector3 -
The unit tangent at natural parameter
t(clamped to0..1).override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited