Polyline class
An open path defined by a sequence of connected points.
Unlike Polygon, a polyline is not closed — the last point does not connect back to the first.
Constructors
Properties
- boundingBox → Rectangle
-
Axis-aligned bounding box of this polyline
no setter
- first → Point
-
First point of the path
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- last → Point
-
Last point of the path
no setter
- length → double
-
Total length of the polyline (sum of all segment lengths)
no setter
-
points
→ List<
Point> -
Ordered list of points forming the path
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentCount → int
-
Number of segments in this polyline
no setter
-
segments
→ List<
Line> -
Get all line segments
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pointAt(
double t) → Point -
Get point at parameter
talong the entire polyline -
rotate(
double deg) → Polyline -
Rotate the polyline by
degdegrees -
scale(
double factor) → Polyline - Scale the polyline
-
simplify(
double tolerance) → Polyline - Simplify polyline using Ramer-Douglas-Peucker algorithm
-
toString(
) → String -
A string representation of this object.
override
-
translate(
{double x = 0, double y = 0}) → Polyline - Translate the polyline
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override