de.lmu.ifi.mfchords.utils
Class Line2D
java.lang.Object
de.lmu.ifi.mfchords.utils.Line2D
public class Line2D
- extends java.lang.Object
Constructor Summary |
Line2D(float p1x,
float p1y,
float p2x,
float p2y)
|
Line2D(PointF p1,
PointF p2)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Line2D
public Line2D(float p1x,
float p1y,
float p2x,
float p2y)
Line2D
public Line2D(PointF p1,
PointF p2)
getP1
public PointF getP1()
getP2
public PointF getP2()
ptLineDist
public double ptLineDist(PointF P)
length
public double length()
relativePosition
public double relativePosition(PointF point)