Loading...
Searching...
No Matches
GeometryUtilsBinding.java
Go to the documentation of this file.
1package com.navigine.idl.java.internal;
2
3import com.navigine.common.NativeObject;
4import com.navigine.idl.java.GeometryUtils;
5import com.navigine.idl.java.GlobalPoint;
6import com.navigine.idl.java.Point;
7import com.navigine.idl.java.Polygon;
8import com.navigine.idl.java.Segment;
9
14public final class GeometryUtilsBinding extends GeometryUtils
15{
16 private final NativeObject nativeObject;
17
18 GeometryUtilsBinding(NativeObject nativeObject)
19 {
20 this.nativeObject = nativeObject;
21 }
22
23 @Override
24 public native boolean isValid();
25
26 // GeometryUtils methods
27 public static native float distanceBetweenGlobalPoints(GlobalPoint from, GlobalPoint to);
28
29 public static native float distanceBetweenPoints(Point from, Point to);
30
31 public static native float segmentLength(Segment segment);
32
33 public static native float polygonArea(Polygon polygon);
34
35 public static native Point polygonCenter(Polygon polygon);
36
37 public static native boolean polygonContainsPoint(Polygon polygon, Point point);
38
39 public static native float segmentPointDistance(Segment segment, Point point);
40
41 public static native boolean segmentIntersectsSegment(Segment segment1, Segment segment2);
42
43 public static native Point segmentIntersectionSegment(Segment segment1, Segment segment2);
44
45 public static native float divisionRatioBySegment(Segment segment1, Segment segment2);
46
47 public static native Point getRatioPoint(Segment segment, double r);
48
49 public static native double getProjectionRatio(Segment segment, Point point);
50}