|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--taxisrus.implementation.scheduler_stuff.Edge
Edge has two vertices. Used to represent the lines drawn on screen
| Constructor Summary | |
Edge(Vector2D v1,
Vector2D v2)
Constructors |
|
| Method Summary | |
boolean |
equals(Object obj)
Overrides the Object class's equal function Two edges are equal if they have the same vertices. |
Vector2D |
GetVertex1()
Acessor - get Vertex1 of this edge |
Vector2D |
GetVertex2()
Acessor - get Vertex2 of this edge |
void |
SetVertex1(Vector2D v1)
Mutator - set Vertex1 of this edge |
void |
SetVertex2(Vector2D v2)
Mutator - set Vertex2 of this edge |
boolean |
ShareVertex(Edge edge)
Determines if two edges have a common vertex. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Edge(Vector2D v1,
Vector2D v2)
| Method Detail |
public Vector2D GetVertex1()
public Vector2D GetVertex2()
public boolean equals(Object obj)
equals in class Objectan - Edgepublic boolean ShareVertex(Edge edge)
public void SetVertex1(Vector2D v1)
public void SetVertex2(Vector2D v2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||