public class PathZone
extends java.lang.Object
| Constructor and Description |
|---|
PathZone(RectCoordinates startNode,
RectCoordinates endNode,
double offset)
Cosntructor.
|
PathZone(RectCoordinates startNode,
RectCoordinates endNode,
double horizontalZoneOffset,
double verticalZoneOffset)
Contructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPointInside(double x,
double y)
Checks whether the point at the given coordinates is inside the zone
|
boolean |
isPointInside(RectCoordinates point)
Checks whether the given RectCoordinates is inside the zone
|
public PathZone(RectCoordinates startNode,
RectCoordinates endNode,
double offset)
startNode - The starting node that the zone will be built aroundendNode - The ending node that the zone will be built aroundoffset - The offset for the zone and the destinationpublic PathZone(RectCoordinates startNode,
RectCoordinates endNode,
double horizontalZoneOffset,
double verticalZoneOffset)
startNode - The starting node that the zone will be built aroundendNode - The ending node that the zone will be built aroundhorizontalZoneOffset - The offest being used for the zoneverticalZoneOffset - The offset being used for the destinationpublic boolean isPointInside(RectCoordinates point)
point - RectCoordinatespublic boolean isPointInside(double x,
double y)
x - x value of the pointy - y value of the point