|
| 1 | +// AUTOGENERATED FILE - DO NOT MODIFY! |
| 2 | +// This file was generated by Djinni from geometry.djinni |
| 3 | + |
| 4 | +#import "NCExport.h" |
| 5 | +#import "NCGlobalPoint.h" |
| 6 | +#import "NCPoint.h" |
| 7 | +#import "NCPolygon.h" |
| 8 | +#import "NCSegment.h" |
| 9 | +#import <Foundation/Foundation.h> |
| 10 | + |
| 11 | + |
| 12 | +NAVIGINE_EXPORT |
| 13 | +@interface NCGeometryUtils : NSObject |
| 14 | + |
| 15 | +/** Get distance between GPS points */ |
| 16 | ++ (float)distanceBetweenGlobalPoints:(nonnull NCGlobalPoint *)from |
| 17 | + to:(nonnull NCGlobalPoint *)to; |
| 18 | + |
| 19 | +/** Get distance between points */ |
| 20 | ++ (float)distanceBetweenPoints:(nonnull NCPoint *)from |
| 21 | + to:(nonnull NCPoint *)to; |
| 22 | + |
| 23 | +/** Get length of segment */ |
| 24 | ++ (float)segmentLength:(nonnull NCSegment *)segment; |
| 25 | + |
| 26 | +/** Get polygon area */ |
| 27 | ++ (float)polygonArea:(nonnull NCPolygon *)polygon; |
| 28 | + |
| 29 | +/** Get polygon geometric centre */ |
| 30 | ++ (nonnull NCPoint *)polygonCenter:(nonnull NCPolygon *)polygon; |
| 31 | + |
| 32 | +/** Checks that polygon contains point */ |
| 33 | ++ (BOOL)polygonContainsPoint:(nonnull NCPolygon *)polygon |
| 34 | + point:(nonnull NCPoint *)point; |
| 35 | + |
| 36 | +/** Get distance from segment to point */ |
| 37 | ++ (float)segmentPointDistance:(nonnull NCSegment *)segment |
| 38 | + point:(nonnull NCPoint *)point; |
| 39 | + |
| 40 | +/** Checks the intersection of two segments */ |
| 41 | ++ (BOOL)segmentIntersectsSegment:(nonnull NCSegment *)segment1 |
| 42 | + segment2:(nonnull NCSegment *)segment2; |
| 43 | + |
| 44 | +/** Calculate the intersection point of two segments */ |
| 45 | ++ (nonnull NCPoint *)segmentIntersectionSegment:(nonnull NCSegment *)segment1 |
| 46 | + segment2:(nonnull NCSegment *)segment2; |
| 47 | + |
| 48 | +/** Calculate the division ratio of a segment by a given segment(if intersects) */ |
| 49 | ++ (float)divisionRatioBySegment:(nonnull NCSegment *)segment1 |
| 50 | + segment2:(nonnull NCSegment *)segment2; |
| 51 | + |
| 52 | +/** Calculate projection point on a segment */ |
| 53 | ++ (nonnull NCPoint *)getRatioPoint:(nonnull NCSegment *)segment |
| 54 | + r:(double)r; |
| 55 | + |
| 56 | +/** Calculate the division ratio of a segment by a given point */ |
| 57 | ++ (double)getProjectionRatio:(nonnull NCSegment *)segment |
| 58 | + point:(nonnull NCPoint *)point; |
| 59 | + |
| 60 | +@end |
0 commit comments