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.

Inheritance

Constructors

BezierPath(List<Vector3> controlPoints)
Creates a Bezier path from controlPoints, which is copied. The count must be 3 * segments + 1 for one or more segments.

Properties

hashCode int
The hash code for this object.
no setterinherited
length double
The total arc length of the curve.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

frameAt(double t) ScenePathFrame
An oriented frame at natural parameter t (clamped to 0..1).
inherited
frameAtDistance(double d) ScenePathFrame
An oriented frame at arc-length distance d (clamped to 0..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 to 0..length).
inherited
positionAt(double t) → Vector3
The point on the curve at natural parameter t (clamped to 0..1).
override
positionAtDistance(double d) → Vector3
The point at arc-length distance d (clamped to 0..length).
inherited
sample(int count, {bool evenlySpaced = false}) List<Vector3>
Returns count points 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 0 and ending at 1.
override
tangentAt(double t) → Vector3
The unit tangent at natural parameter t (clamped to 0..1).
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited