|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.language.d2.DirectionalShape
DirectionalShape is used to create a shape out of vertices and find out whether a certain point is inside or outside of the shape
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
protected java.util.List |
lines
lines that connect the points |
protected java.util.List |
points
points that span up the shape |
| Constructor Summary | |
DirectionalShape()
constructs a new directional line |
|
| Method Summary | |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List points
protected java.util.List lines
| Constructor Detail |
public DirectionalShape()
| Method Detail |
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 coodinate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||