Telogis.GeoBase.GeomUtil |
Contains mathematical utility functions for manipulating spatial data.
Name | Description |
---|---|
closestPointOnLineFromPoint (LatLon p1, LatLon p2, LatLon point) | Calculates the closest point on the line A to B from the point given. ArgumentsReturns |
closestPointOnSetOfLines (LatLons latlons, LatLon latlon) | Calculates the closest point on a set of lines from the LatLon given. ArgumentsReturns |
convexPolygonsIntersect (Array polygon1, Array polygon2) | Tests if two convex polygons are intersecting. Arguments
Boolean - True if the polygons intersect and false otherwise. |
findDistanceToEndOfPath (LatLons path) | Calculates the distance to the end of a path. Arguments
Number - The calculated distance in meters. |
pointInsideConvexPolygon (Point point, Array polygon) | Tests if a point is inside the bounds of a polygon. On the edge of the polygon is considered inside. Arguments
Boolean - True if the point is inside the polygon and false otherwise. |