|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.geom.Line2D
|
+--java.awt.geom.Line2D.Float
|
+--CollisionLine2D
| Field Summary |
| Fields inherited from class java.awt.geom.Line2D.Float |
x1, x2, y1, y2 |
| Constructor Summary | |
CollisionLine2D(double dX1,
double dY1,
double dX2,
double dY2)
The Constructor, sets values |
|
CollisionLine2D(float fX1,
float fY1,
float fX2,
float fY2)
The Constructor, sets values |
|
| Method Summary | |
java.lang.Object |
clone()
implements the cloneable interface |
float |
getHookWith(CollisionLine2D oLine)
returns the hook between this line and the line oLine |
CollisionLine2D |
getIncomingLine(float fX,
float fY)
returns the normal line of this line to point fX, fY HAVE TO BE REWRITTEN if the normal line does not intersect this line, a line from the closest point of this line to the specified point will be returned |
float |
getLength()
returns the length of this line |
float |
getLengthToPoint1(float fX,
float fY)
returns distance from the first point of this line to the specified position |
float |
getLengthToPoint2(float fX,
float fY)
returns distance from the second point of this line to the specified position |
CollisionLine2D |
getNormal()
returns the normal line of this line HAVE TO BE REWRITTEN |
CollisionLine2D |
getNormalThrough(float fX,
float fY)
returns the normal line of this line to point fX, fY HAVE TO BE REWRITTEN The normal line may be outside this line |
java.lang.String |
toString()
returns information about this 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 |
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, wait, wait, wait |
| Constructor Detail |
public CollisionLine2D(double dX1,
double dY1,
double dX2,
double dY2)
public CollisionLine2D(float fX1,
float fY1,
float fX2,
float fY2)
| Method Detail |
public CollisionLine2D getNormal()
public CollisionLine2D getIncomingLine(float fX,
float fY)
public float getLength()
public float getLengthToPoint1(float fX,
float fY)
public float getLengthToPoint2(float fX,
float fY)
public float getHookWith(CollisionLine2D oLine)
public CollisionLine2D getNormalThrough(float fX,
float fY)
public java.lang.Object clone()
clone in class java.awt.geom.Line2Dpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||