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 floatDistanceManhatten(float fromX, float fromY, float toX, float toY)static floatDistanceManhatten(float fromX, float fromY, float toX, float toY, float fromZ, float toZ)static floatDistanceManhattenSquare(float fromX, float fromY, float toX, float toY)static floatDistanceTo(float fromX, float fromY, float toX, float toY)static floatDistanceTo(float fromX, float fromY, float fromZ, float toX, float toY, float toZ)static floatDistanceTo2D(float fromX, float fromY, float toX, float toY)static floatDistanceToSquared(float fromX, float fromY, float toX, float toY)static floatDistanceToSquared(float fromX, float fromY, float fromZ, float toX, float toY, float toZ)static floatXToIso(float screenX, float screenY, float floor)static floatXToIsoTrue(float screenX, float screenY, int floor)static floatXToScreen(float objectX, float objectY, float objectZ, int screenZ)static floatXToScreenExact(float objectX, float objectY, float objectZ, int screenZ)static floatXToScreenInt(int objectX, int objectY, int objectZ, int screenZ)static floatYToIso(float screenX, float screenY, float floor)static floatYToIsoTrue(float screenX, float screenY, int floor)static floatYToScreen(float objectX, float objectY, float objectZ, int screenZ)static floatYToScreenExact(float objectX, float objectY, float objectZ, int screenZ)static floatYToScreenInt(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 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)
-