|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavamorph.CLine
public class CLine
Field Summary | |
---|---|
int |
x1
x of first point. |
int |
x2
x of second point. |
int |
y1
y of first point. |
int |
y2
y of second point. |
Constructor Summary | |
---|---|
CLine(int x1,
int y1,
int x2,
int y2)
Constructor with numbers. |
|
CLine(Point p1,
Point p2)
Constructor with two points. |
Method Summary | |
---|---|
boolean |
cross(CLine other)
Does one line cross the other? |
boolean |
equals(Object o)
Both end points are identical. |
int |
hashCode()
Hash code relating to equals . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int x1
public int x2
public int y1
public int y2
Constructor Detail |
---|
public CLine(int x1, int y1, int x2, int y2)
x1
- X of first point.y1
- Y of first point.x2
- X of second point.y2
- Y of second point.public CLine(Point p1, Point p2)
p1
- Complete first point.p2
- Complete second point.Method Detail |
---|
public boolean cross(CLine other)
other
- The other line.
true
if crossing.public boolean equals(Object o)
equals
in class Object
public int hashCode()
equals
.
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |