Package net.blueva.arcade.api.utils
Class LocationUtil
java.lang.Object
net.blueva.arcade.api.utils.LocationUtil
Utility methods for platform-agnostic location operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <L,W> L getCenter(L min, L max, LocationAdapter<L, W> adapter) Get center of two locations.static <L,W> boolean isBetween(L loc, L min, L max, LocationAdapter<L, W> adapter) Check if location is between two bounds.static <L,W> String toString(L loc, LocationAdapter<L, W> adapter) Format location as string.
-
Constructor Details
-
LocationUtil
public LocationUtil()
-
-
Method Details
-
isBetween
Check if location is between two bounds. -
getCenter
Get center of two locations. -
toString
Format location as string.
-