public class GateArea extends Area
| Modifier and Type | Field and Description |
|---|---|
private int |
gateNumber
The gate number.
|
shapepositionmap| Constructor and Description |
|---|
GateArea(double topX,
double topY,
double width,
double height)
Creates a rectangular gate area from a specified (x,y) coordinate, width
and height.
|
GateArea(int gateNumber,
double topX,
double topY,
double width,
double height)
Creates a rectangular gate area from a specified (x,y) coordinate, width
and height.
|
GateArea(int gateNumber,
java.util.List<Position> corners)
Creates the area with a set of specified corner points.
|
GateArea(java.util.List<Position> corners)
Creates the area with a set of specified corner points.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getGateNumber()
Gets the gate number.
|
contains, contains, generatePosition, generatePosition, generatePositions, generatePositions, getCorners, getVectorToPosition, isCollision, isLineCollision, toStringgetDistance, getPositionisDestroyedpublic GateArea(double topX,
double topY,
double width,
double height)
topX - The x coordinate.topY - The y coordinate.width - The width.height - The height.public GateArea(int gateNumber,
double topX,
double topY,
double width,
double height)
gateNumber - The gate number.topX - The x coordinate.topY - The y coordinate.width - The width.height - The height.public GateArea(int gateNumber,
java.util.List<Position> corners)
gateNumber - The gate number.corners - The corner points.public GateArea(java.util.List<Position> corners)
corners - The corner points.