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

    Fields
    Modifier and Type Field Description
    private double maxX  
    private double maxY  
    private double minX  
    private double minY  
  • Constructor Summary

    Constructors
    Constructor Description
    Area​(double minX, double minY, double maxX, double maxY)
    Create a new area.
    Area​(Point a, Point b)
    Create a new area.
  • Method Summary

    Modifier and Type Method Description
    double getMaxX()
    Get the area's maximum X.
    double getMaxY()
    Get the area's maximum Y.
    double getMinX()
    Get the area's minimum X.
    double getMinY()
    Get the area's minimum Y.

    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

      public Area​(Point a, Point b)
      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.