|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.geometry.LineSeg2D
public class LineSeg2D
WRITEME: Document this type.
Field Summary | |
---|---|
(package private) Coord2D |
point1
Point 1 |
(package private) Coord2D |
point2
Point 2 |
Constructor Summary | |
---|---|
LineSeg2D(Coord2D p1,
Coord2D p2)
Constructor |
Method Summary | |
---|---|
Coord2D |
getPoint1()
|
Coord2D |
getPoint2()
|
Coord2D |
intersectionPoint(LineSeg2D lSeg2d)
Gets the intersection point of two line segments |
boolean |
intersects(LineSeg2D lSeg2d)
Determines if the line intersects another line |
double |
length()
|
String |
toString()
|
LineSeg2D |
translate(double x,
double y)
Creates a new line segment moved to the new position WRITEME: Document this method ewinkelman |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
final Coord2D point1
final Coord2D point2
Constructor Detail |
---|
public LineSeg2D(Coord2D p1, Coord2D p2)
p1
- Point Onep2
- Point TwoMethod Detail |
---|
public Coord2D getPoint1()
public Coord2D getPoint2()
public Coord2D intersectionPoint(LineSeg2D lSeg2d)
lSeg2d
- The line segment to test intersection with
public boolean intersects(LineSeg2D lSeg2d)
lSeg2d
- WRITEME
public double length()
public String toString()
toString
in class Object
Object.toString()
public LineSeg2D translate(double x, double y)
x
- WRITEMEy
- WRITEME
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |