Package com.avrix.api.shared
Class IsoObjectUtils
java.lang.Object
com.avrix.api.shared.IsoObjectUtils
A set of tools for working with isometric objects
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
getDistance
(zombie.iso.IsoObject object1, zombie.iso.IsoObject object2) Calculates the distance between two objects in isometric space.
-
Constructor Details
-
IsoObjectUtils
public IsoObjectUtils()
-
-
Method Details
-
getDistance
public static float getDistance(zombie.iso.IsoObject object1, zombie.iso.IsoObject object2) Calculates the distance between two objects in isometric space. Height distance is ignored (axis Z).- Parameters:
object1
- The first object (object of type IsoObject) whose coordinates are used to calculate the distance.object2
- The second object (object of type IsoObject) whose coordinates are used to calculate the distance.- Returns:
- The distance between two objects in isometric space.
-