|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.sim.geo.GeoObject
jasi.sim.geo.util.Line
public final class Line
Immutable class to represent a line.
| Field Summary |
|---|
| Fields inherited from interface jasi.sim.geo.Geometric |
|---|
BEGIN, END, MIDLE |
| Constructor Summary | |
|---|---|
Line(SpaceVec p,
Direction d,
Space l)
Constructor of a line. |
|
Line(SpaceVec p,
SpaceVec q)
Constructor of a line. |
|
Line(java.lang.String s)
Constructor of a line. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class jasi.sim.geo.GeoObject |
|---|
getContent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Line(SpaceVec p,
Direction d,
Space l)
p - The start point.d - The direction.l - The length.
public Line(SpaceVec p,
SpaceVec q)
p - The space vector of the base reference point.q - The space vector of the direction reference point.public Line(java.lang.String s)
s - The string representation of a line.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - That object which is compared with this object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||