gov.nasa.worldwind.util
Class GeometryMath
java.lang.Object
gov.nasa.worldwind.util.GeometryMath
public class GeometryMath - extends Object
A collection of useful geometric methods, all static.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeometryMath
public GeometryMath()
computePolygonArea
public static double computePolygonArea(Iterable<? extends LatLon> locations)
computePolygonArea2
public static double computePolygonArea2(Iterable<? extends Vec4> points)
computePolygonWindingOrder
public static String computePolygonWindingOrder(Iterable<? extends LatLon> locations)
computePolygonWindingOrder2
public static String computePolygonWindingOrder2(Iterable<? extends Vec4> points)
isLocationInside
public static boolean isLocationInside(LatLon location,
Iterable<? extends LatLon> locations)
- Determines whether a
LatLon location is located inside a given polygon.
- Parameters:
location - the locationlocations - the list of positions describing the polygon. Last one should be the same as the first one.
- Returns:
- true if the location is inside the polygon.
isPolygonClosed
public static boolean isPolygonClosed(Iterable<? extends LatLon> locations)
isPolygonClosed2
public static boolean isPolygonClosed2(Iterable<? extends Vec4> points)
isSegmentIntersectingSector
public static boolean isSegmentIntersectingSector(LatLon begin,
LatLon end,
Sector sector)
|
|