Package org.baseagent.grid
Class TorusBoundsPolicy
java.lang.Object
org.baseagent.grid.TorusBoundsPolicy
- All Implemented Interfaces:
GridBoundsPolicy
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TorusBoundsPolicy
-
-
Method Details
-
boundX
public int boundX(int x) - Specified by:
boundX
in interfaceGridBoundsPolicy
-
boundY
public int boundY(int y) - Specified by:
boundY
in interfaceGridBoundsPolicy
-
boundX
public double boundX(double x) - Specified by:
boundX
in interfaceGridBoundsPolicy
-
boundY
public double boundY(double y) - Specified by:
boundY
in interfaceGridBoundsPolicy
-