BezierPath class
A path of joined cubic Bezier segments.
Each segment is defined by four control points, and adjacent
segments share an endpoint, so the control point count must be
3 * segments + 1.
Constructors
-
BezierPath(List<
Vector3> controlPoints) -
Creates a Bezier path from
controlPoints, which is copied. The count must be3 * segments + 1for one or more segments.
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