A set of functions for working with geometries. More...
Inherits Finalizable.
Static Public Member Functions | |
| static double | distanceBetweenGlobalPoints (GlobalPoint from, GlobalPoint to) |
| Get distance between GPS points. | |
| static double | distanceBetweenPoints (Point from, Point to) |
| Get distance between points. | |
| static double | segmentLength (Segment segment) |
| Get length of segment. | |
| static double | polygonArea (Polygon polygon) |
| Get polygon area. | |
| static Point | polygonCenter (Polygon polygon) |
| Get polygon geometric center. | |
| static bool | polygonContainsPoint (Polygon polygon, Point point) |
| Checks that polygon contains point. | |
| static double | segmentPointDistance (Segment segment, Point point) |
| Get distance from segment to point. | |
| static bool | segmentIntersectsSegment (Segment segment1, Segment segment2) |
| Checks the intersection of two segments. | |
| static Point | segmentIntersectionSegment (Segment segment1, Segment segment2) |
| Calculate the intersection point of two segments. | |
| static double | divisionRatioBySegment (Segment segment1, Segment segment2) |
| Calculate the division ratio of a segment by a given segment(if intersects) | |
| static Point | getRatioPoint (Segment segment, double r) |
| Calculate projection point on a segment. | |
| static double | getProjectionRatio (Segment segment, Point point) |
| Calculate the division ratio of a segment by a given point Calculate projection point on a segment. | |
A set of functions for working with geometries.
Definition at line 23 of file geometry_utils.dart.
|
static |
Get distance between GPS points.
| from | start point of calculation GlobalPoint |
| to | end point of calculation GlobalPoint |
Dart code snippet:
Get distance between points.
Dart code snippet:
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 |
Dart code snippet:
Calculate the division ratio of a segment by a given point Calculate projection point on a segment.
Dart code snippet:
Calculate projection point on a segment.
| segment | segment of calculation Segment |
| r | division ratio |
Dart code snippet:
|
static |
Get polygon area.
| polygon | polygon object for calculation Polygon |
Dart code snippet:
Get polygon geometric center.
| polygon | polygon object for calculation Polygon |
Dart code snippet:
Checks that polygon contains point.
| polygon | polygon object in which looking for contents Polygon |
| point | checking point object Point |
Dart code snippet:
Calculate the intersection point of two segments.
| segment1 | first segment of calculation Segment |
| segment2 | second segment of calculation Segment |
Dart code snippet:
Checks the intersection of two segments.
| segment1 | first segment of calculation Segment |
| segment2 | second segment of calculation Segment |
Dart code snippet:
|
static |
Get length of segment.
| segment | segment object for calculation Segment |
Dart code snippet:
Get distance from segment to point.
Dart code snippet: