PolylinePath class Geometry

A path of straight segments connecting a list of points.

Inheritance

Constructors

PolylinePath(List<Vector3> points)
Creates a polyline through points, which is copied. At least two points are required.

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