Package me.wobblyyyy.pathfinder.util
Class MapTools.Area
java.lang.Object
me.wobblyyyy.pathfinder.util.MapTools.Area
- Enclosing class:
- MapTools
public static class MapTools.Area
extends java.lang.Object
Class used for representing the area of a zone.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
minX
private final double minX -
minY
private final double minY -
maxX
private final double maxX -
maxY
private final double maxY
-
-
Constructor Details
-
Area
Create a new area.- Parameters:
a
- one of the area's defining points.b
- one of the area's defining points.
-
Area
public Area(double minX, double minY, double maxX, double maxY)Create a new area.- Parameters:
minX
- area's min x.minY
- area's min y.maxX
- area's max x.maxY
- area's max y.
-
-
Method Details
-
getMinX
public double getMinX()Get the area's minimum X.- Returns:
- the area's minimum X.
-
getMinY
public double getMinY()Get the area's minimum Y.- Returns:
- the area's minimum Y.
-
getMaxX
public double getMaxX()Get the area's maximum X.- Returns:
- the area's maximum X.
-
getMaxY
public double getMaxY()Get the area's maximum Y.- Returns:
- the area's maximum Y.
-