public class DirectionalShape extends Object
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl/language
License of use: Lesser
General Public License (LGPL) , no warranty
| Modifier and Type | Field and Description |
|---|---|
protected List |
lines
lines that connect the points
|
protected List |
points
points that span up the shape
|
| Constructor and Description |
|---|
DirectionalShape()
constructs a new directional line
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(double x,
double y)
add a point to the shape
|
void |
determineSegments()
determine the line segments between the points
|
boolean |
getInside(double x,
double y)
determine whether a point (x,y) is inside this shape or not
|
protected List points
protected List lines
public void addPoint(double x,
double y)
x - X coordinatey - Y coordinatepublic void determineSegments()
public boolean getInside(double x,
double y)
x - X coordinatey - Y coodinateCopyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.