PathMetric class
Utilities for measuring a Path and extracting subpaths.
Iterate over the object returned by Path.computeMetrics to obtain PathMetric objects.
Once created, metrics will only be valid while the iterator is at the given contour. When the next contour's PathMetric is obtained, this object becomes invalid.
Properties
- isClosed → bool
-
Whether the contour is closed. [...]
read-only
- length → double
-
Return the total length of the current contour.
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
extractPath(
double start, double end, { bool startWithMoveTo: true }) → Path - Given a start and stop distance, return the intervening segment(s). [...]
-
getTangentForOffset(
double distance) → Tangent - Computes the position of hte current contour at the given offset, and the angle of the path at that point. [...]
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited