ExpressiveMeasuredPolygon class
A polygon whose curves are measured and given outline progress values.
Constructors
- ExpressiveMeasuredPolygon.measurePolygon(ExpressiveMeasurer measurer, ExpressiveRoundedPolygon polygon)
-
The polygon
polygonmeasured bymeasurer.factory
Properties
-
features
→ List<
ExpressiveProgressableFeature> -
The polygon's features with their outline progress.
no setter
- first → ExpressiveMeasuredCubic
-
The first measured curve.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- last → ExpressiveMeasuredCubic
-
The last measured curve.
no setter
- length → int
-
The number of measured curves.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cutAndShift(
double cuttingPoint) → ExpressiveMeasuredPolygon - Finds the point in the input list of measured cubics that pass the given outline progress, and generates a new MeasuredPolygon (equivalent to this), that starts at that point. This usually means cutting the cubic that crosses the outline progress (unless the cut is at one of its ends). For example, given outline progress 0.4f and measured cubics on these outline progress ranges:
-
getOrNull(
int index) → ExpressiveMeasuredCubic? -
The measured curve at
index, or null whenindexis out of range. -
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
-
operator [](
int index) → ExpressiveMeasuredCubic -
The measured curve at
index.