Class OutOfProjectionBoundsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.buildtheearth.terraminusminus.projection.OutOfProjectionBoundsException
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckInRange(double x, double y, double maxX, double maxY) static voidcheckLongitudeLatitudeInRange(double longitude, double latitude) get()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
get
-
checkInRange
public static void checkInRange(double x, double y, double maxX, double maxY) throws OutOfProjectionBoundsException - Parameters:
x-y-maxX-maxY-- Throws:
OutOfProjectionBoundsException- ifMath.abs(x) > maxX || Math.abs(y) > maxY
-
checkLongitudeLatitudeInRange
public static void checkLongitudeLatitudeInRange(double longitude, double latitude) throws OutOfProjectionBoundsException - Parameters:
longitude-latitude-- Throws:
OutOfProjectionBoundsException- ifMath.abs(longitude) > 180 || Math.abs(latitude) > 90
-