GeometryUtils class abstract

A set of functions for working with geometries.

Implemented types
Implementers

Constructors

GeometryUtils()

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 from start point of calculation GlobalPoint to end point of calculation GlobalPoint Returns distance in meters
distanceBetweenPoints(Point from, Point to) double
Get distance between points from start point of calculation Point to end 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) segment1 first segment of calculation Segment segment2 second 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 segment segment of calculation Segment point point of calculation Point Returns division ratio
getRatioPoint(Segment segment, double r) Point
Calculate projection point on a segment segment segment of calculation Segment r division ratio Returns ratio point Point
polygonArea(Polygon polygon) double
Get polygon area polygon polygon object for calculation Polygon Returns area in meters
polygonCenter(Polygon polygon) Point
Get polygon geometric center polygon polygon object for calculation Polygon Returns center point Point
polygonContainsPoint(Polygon polygon, Point point) bool
Checks that polygon contains point polygon polygon object in which looking for contents Polygon point checking point object Point Returns contains or not
segmentIntersectionSegment(Segment segment1, Segment segment2) Point
Calculate the intersection point of two segments segment1 first segment of calculation Segment segment2 second segment of calculation Segment Returns intersection point Point
segmentIntersectsSegment(Segment segment1, Segment segment2) bool
Checks the intersection of two segments segment1 first segment of calculation Segment segment2 second segment of calculation Segment Returns intersects or not
segmentLength(Segment segment) double
Get length of segment segment segment object for calculation Segment Returns length in meters
segmentPointDistance(Segment segment, Point point) double
Get distance from segment to point segment start segment of calculation Segment point end point of calculation Point Returns distance in meters