A set of functions for working with geometries. More...
#include <com/navigine/idl/objc/NCGeometryUtils.h>
Inherits NSObject.
Class Methods | |
(float) | + distanceBetweenGlobalPoints:to: |
Get distance between GPS points. | |
(float) | + distanceBetweenPoints:to: |
Get distance between points. | |
(float) | + segmentLength: |
Get length of segment. | |
(float) | + polygonArea: |
Get polygon area. | |
(nonnull NCPoint *) | + polygonCenter: |
Get polygon geometric center. | |
(BOOL) | + polygonContainsPoint:point: |
Checks that polygon contains point. | |
(float) | + segmentPointDistance:point: |
Get distance from segment to point. | |
(BOOL) | + segmentIntersectsSegment:segment2: |
Checks the intersection of two segments. | |
(nonnull NCPoint *) | + segmentIntersectionSegment:segment2: |
Calculate the intersection point of two segments. | |
(float) | + divisionRatioBySegment:segment2: |
Calculate the division ratio of a segment by a given segment(if intersects) | |
(nonnull NCPoint *) | + getRatioPoint:r: |
Calculate projection point on a segment. | |
(double) | + getProjectionRatio: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 21 of file NCGeometryUtils.h.
+ (float) distanceBetweenGlobalPoints: | (nonnull NCGlobalPoint *) | from | |
to: | (nonnull NCGlobalPoint *) | to |
Get distance between GPS points.
from | start point of calculation GlobalPoint |
to | end point of calculation GlobalPoint |
+ (float) polygonArea: | (nonnull NCPolygon *) | polygon |
+ (float) segmentLength: | (nonnull NCSegment *) | segment |
Get length of segment.
segment | segment object for calculation Segment |