LineUtil class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
clipSegment (Point a , Point b , Bounds bounds , [bool ? useLastCode , bool ? round ])
→ dynamic
Clips the segment a to b by rectangular bounds with the Cohen-Sutherland
algorithm (modifying the segment points directly!).
closestPointOnSegment (Point p , Point p1 , Point p2 )
→ Point
Returns the closest point from a point p on a segment p1 to p2.
isFlat (List latlngs )
→ bool
Returns true
if latlngs
is a flat array, false
is nested.
pointToSegmentDistance (Point p , Point p1 , Point p2 )
→ num
Returns the distance between point p
and segment p1
to p2
.
simplify (List points , List tolerance )
→ List
Dramatically reduces the number of points in a polyline while retaining its
shape and returns a new array of simplified points, using the Douglas-Peucker algorithm.