EvenSpacer class
Class for calculating parameter values of points in a Bezier evenly spaced along its arc length.
Constructors
-
EvenSpacer(List<
Vector2> curveLookUpTable) -
Constructs a EvenSpacer with a List of
Vector2
positions calculated at evenly spaced parameter values within a Bezier. - EvenSpacer.fromBezier(Bezier curve, {int intervalsCount = 50})
-
Returns an instance of EvenSpacer using a position look up table
generated from
curve
.factory
Properties
- arcLength → double
-
The approximate arc length of the curve.
no setter
-
curveLookUpTable
→ List<
Vector2> -
A set of points along a curve at evenly spaced parameter values including
the start and end points.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evenTValueAt(
double t) → double -
Returns the parameter value along the curve at the fraction of arc length
t
along the curve. -
evenTValues(
{int parametersCount = 50}) → List< double> - Returns a List of parameter values along the curve that are approximately evenly spaced along its arc length.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited