A set of functions for working with geometries. More...
Inheritance diagram for com.navigine.idl.java.GeometryUtils:Public Member Functions | |
| abstract boolean | isValid () |
Static Public Member Functions | |
| static float | distanceBetweenGlobalPoints (GlobalPoint from, GlobalPoint to) |
| Get distance between GPS points. | |
| static float | distanceBetweenPoints (Point from, Point to) |
| Get distance between points. | |
| static float | segmentLength (Segment segment) |
| Get length of segment. | |
| static float | polygonArea (Polygon polygon) |
| Get polygon area. | |
| static Point | polygonCenter (Polygon polygon) |
| Get polygon geometric center. | |
| static boolean | polygonContainsPoint (Polygon polygon, Point point) |
| Checks that polygon contains point. | |
| static float | segmentPointDistance (Segment segment, Point point) |
| Get distance from segment to point. | |
| static boolean | 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 float | 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 14 of file GeometryUtils.java.
|
inlinestatic |
Get distance between GPS points.
| from | start point of calculation GlobalPoint |
| to | end point of calculation GlobalPoint |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 38 of file GeometryUtils.java.
|
inlinestatic |
Get distance between points.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 60 of file GeometryUtils.java.
|
inlinestatic |
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 |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 230 of file GeometryUtils.java.
|
inlinestatic |
Calculate the division ratio of a segment by a given point Calculate projection point on a segment.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 275 of file GeometryUtils.java.
|
inlinestatic |
Calculate projection point on a segment.
| segment | segment of calculation Segment |
| r | division ratio |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 252 of file GeometryUtils.java.
|
abstract |
Tells if this GeometryUtils is valid or not. Any other method (except for this one) called on an invalid GeometryUtils will throw java.lang.RuntimeException.
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
|
inlinestatic |
Get polygon area.
| polygon | polygon object for calculation Polygon |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 101 of file GeometryUtils.java.
Get polygon geometric center.
| polygon | polygon object for calculation Polygon |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 121 of file GeometryUtils.java.
|
inlinestatic |
Checks that polygon contains point.
| polygon | polygon object in which looking for contents Polygon |
| point | checking point object Point |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 142 of file GeometryUtils.java.
|
inlinestatic |
Calculate the intersection point of two segments.
| segment1 | first segment of calculation Segment |
| segment2 | second segment of calculation Segment |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 208 of file GeometryUtils.java.
|
inlinestatic |
Checks the intersection of two segments.
| segment1 | first segment of calculation Segment |
| segment2 | second segment of calculation Segment |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 186 of file GeometryUtils.java.
|
inlinestatic |
Get length of segment.
| segment | segment object for calculation Segment |
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 81 of file GeometryUtils.java.
|
inlinestatic |
Get distance from segment to point.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GeometryUtilsBinding.
Definition at line 164 of file GeometryUtils.java.