ExpressiveMeasuredCubic class

A MeasuredCubic holds information about the cubic itself, the feature (if any) associated with it, and the outline progress values (start and end) for the cubic. This information is used to match cubics between shapes that lie at similar outline progress positions along their respective shapes (after matching features and shifting).

Outline progress is a value in [0..1) that represents the distance traveled along the overall outline path of the shape.

Constructors

ExpressiveMeasuredCubic({required ExpressiveMeasurer measurer, required ExpressiveShapeCubic cubic, required double startOutlineProgress, required double endOutlineProgress})
A measured cubic spanning the given outline progress range.

Properties

cubic → ExpressiveShapeCubic
The curve.
final
endOutlineProgress → double
The outline progress where the curve ends.
no setter
hashCode → int
The hash code for this object.
no setterinherited
measuredSize ↔ double
The curve's size as measurer measures it.
latefinal
measurer → ExpressiveMeasurer
The measurer that sized the curve.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startOutlineProgress → double
The outline progress where the curve starts.
no setter

Methods

cutAtProgress(double cutOutlineProgress) → (ExpressiveMeasuredCubic, ExpressiveMeasuredCubic)
Cut this ExpressiveMeasuredCubic into two at the given outline progress value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
updateProgressRange({double? startOutlineProgress, double? endOutlineProgress}) → void
Sets the outline progress range, keeping a bound left null.

Operators

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