GeometryUtils class abstract
A set of functions for working with geometries.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
distanceBetweenGlobalPoints(
GlobalPoint from, GlobalPoint to) → double -
Get distance between GPS points
fromstart point of calculation GlobalPointtoend point of calculation GlobalPoint Returns distance in meters -
distanceBetweenPoints(
Point from, Point to) → double -
Get distance between points
fromstart point of calculation Pointtoend point of calculation Point Returns distance in meters -
divisionRatioBySegment(
Segment segment1, Segment segment2) → double -
Calculate the division ratio of a segment by a given segment(if intersects)
segment1first segment of calculation Segmentsegment2second segment of calculation Segment Returns division ratio -
getProjectionRatio(
Segment segment, Point point) → double -
Calculate the division ratio of a segment by a given point
Calculate projection point on a segment
segmentsegment of calculation Segmentpointpoint of calculation Point Returns division ratio -
getRatioPoint(
Segment segment, double r) → Point -
Calculate projection point on a segment
segmentsegment of calculation Segmentrdivision ratio Returns ratio point Point -
polygonArea(
Polygon polygon) → double -
Get polygon area
polygonpolygon object for calculation Polygon Returns area in meters -
polygonCenter(
Polygon polygon) → Point -
Get polygon geometric center
polygonpolygon object for calculation Polygon Returns center point Point -
polygonContainsPoint(
Polygon polygon, Point point) → bool -
Checks that polygon contains point
polygonpolygon object in which looking for contents Polygonpointchecking point object Point Returns contains or not -
segmentIntersectionSegment(
Segment segment1, Segment segment2) → Point -
Calculate the intersection point of two segments
segment1first segment of calculation Segmentsegment2second segment of calculation Segment Returns intersection point Point -
segmentIntersectsSegment(
Segment segment1, Segment segment2) → bool -
Checks the intersection of two segments
segment1first segment of calculation Segmentsegment2second segment of calculation Segment Returns intersects or not -
segmentLength(
Segment segment) → double -
Get length of segment
segmentsegment object for calculation Segment Returns length in meters -
segmentPointDistance(
Segment segment, Point point) → double -
Get distance from segment to point
segmentstart segment of calculation Segmentpointend point of calculation Point Returns distance in meters