Package zombie.iso
Class IsoUtils
java.lang.Object
zombie.iso.IsoUtils
public class IsoUtils
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description IsoUtils()
-
Method Summary
Modifier and Type Method Description static float
DistanceManhatten(float fromX, float fromY, float toX, float toY)
static float
DistanceManhatten(float fromX, float fromY, float toX, float toY, float fromZ, float toZ)
static float
DistanceManhattenSquare(float fromX, float fromY, float toX, float toY)
static float
DistanceTo(float fromX, float fromY, float toX, float toY)
static float
DistanceTo(float fromX, float fromY, float fromZ, float toX, float toY, float toZ)
static float
DistanceTo2D(float fromX, float fromY, float toX, float toY)
static float
DistanceToSquared(float fromX, float fromY, float toX, float toY)
static float
XToIso(float screenX, float screenY, float floor)
static float
XToIsoTrue(float screenX, float screenY, int floor)
static float
XToScreen(float objectX, float objectY, float objectZ, int screenZ)
static float
XToScreenExact(float objectX, float objectY, float objectZ, int screenZ)
static float
XToScreenInt(int objectX, int objectY, int objectZ, int screenZ)
static float
YToIso(float screenX, float screenY, float floor)
static float
YToIsoTrue(float screenX, float screenY, int floor)
static float
YToScreen(float objectX, float objectY, float objectZ, int screenZ)
static float
YToScreenExact(float objectX, float objectY, float objectZ, int screenZ)
static float
YToScreenInt(int objectX, int objectY, int objectZ, int screenZ)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
IsoUtils
public IsoUtils()
-
-
Method Details
-
DistanceTo
public static float DistanceTo(float fromX, float fromY, float toX, float toY) -
DistanceTo2D
public static float DistanceTo2D(float fromX, float fromY, float toX, float toY) -
DistanceTo
public static float DistanceTo(float fromX, float fromY, float fromZ, float toX, float toY, float toZ) -
DistanceToSquared
public static float DistanceToSquared(float fromX, float fromY, float toX, float toY) -
DistanceManhatten
public static float DistanceManhatten(float fromX, float fromY, float toX, float toY) -
DistanceManhatten
public static float DistanceManhatten(float fromX, float fromY, float toX, float toY, float fromZ, float toZ) -
DistanceManhattenSquare
public static float DistanceManhattenSquare(float fromX, float fromY, float toX, float toY) -
XToIso
public static float XToIso(float screenX, float screenY, float floor) -
XToIsoTrue
public static float XToIsoTrue(float screenX, float screenY, int floor) -
XToScreen
public static float XToScreen(float objectX, float objectY, float objectZ, int screenZ) -
XToScreenInt
public static float XToScreenInt(int objectX, int objectY, int objectZ, int screenZ) -
YToScreenExact
public static float YToScreenExact(float objectX, float objectY, float objectZ, int screenZ) -
XToScreenExact
public static float XToScreenExact(float objectX, float objectY, float objectZ, int screenZ) -
YToIso
public static float YToIso(float screenX, float screenY, float floor) -
YToIsoTrue
public static float YToIsoTrue(float screenX, float screenY, int floor) -
YToScreen
public static float YToScreen(float objectX, float objectY, float objectZ, int screenZ) -
YToScreenInt
public static float YToScreenInt(int objectX, int objectY, int objectZ, int screenZ)
-