|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object LineSegmentXZ
public class LineSegmentXZ
Field Summary | |
---|---|
VectorXZ |
p1
|
VectorXZ |
p2
|
Constructor Summary | |
---|---|
LineSegmentXZ(VectorXZ p1,
VectorXZ p2)
|
Method Summary | |
---|---|
VectorXZ |
getCenter()
|
VectorXZ |
getIntersection(VectorXZ segmentP1,
VectorXZ segmentP2)
returns the intersection between this line segment and the line segment defined by the parameters; null if none exists. |
double |
getLength()
returns the distance between this segment's two end nodes |
boolean |
intersects(VectorXZ segmentP1,
VectorXZ segmentP2)
returns true if there is an intersection between this line segment and the line segment defined by the parameters |
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final VectorXZ p1
public final VectorXZ p2
Constructor Detail |
---|
public LineSegmentXZ(VectorXZ p1, VectorXZ p2)
Method Detail |
---|
public VectorXZ getCenter()
public boolean intersects(VectorXZ segmentP1, VectorXZ segmentP2)
public VectorXZ getIntersection(VectorXZ segmentP1, VectorXZ segmentP2)
public double getLength()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |