|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Line2D
java.awt.geom.Line2D.Float
lejos.geom.Line
public class Line
Represents a line and supports calculating the point of intersection of two line segments.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Line2D |
---|
java.awt.geom.Line2D.Double, java.awt.geom.Line2D.Float |
Field Summary |
---|
Fields inherited from class java.awt.geom.Line2D.Float |
---|
x1, x2, y1, y2 |
Constructor Summary | |
---|---|
Line(float x1,
float y1,
float x2,
float y2)
|
Method Summary | |
---|---|
Point |
intersectsAt(Line l)
Calculate the point of intersection of two lines. |
float |
length()
Return the length of the line |
Methods inherited from class java.awt.geom.Line2D.Float |
---|
getBounds2D, getP1, getP2, getX1, getX2, getY1, getY2, setLine, setLine |
Methods inherited from class java.awt.geom.Line2D |
---|
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Line(float x1, float y1, float x2, float y2)
Method Detail |
---|
public Point intersectsAt(Line l)
l
- the second line
public float length()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |