de.lmu.ifi.mfchords.utils
Class Line2D

java.lang.Object
  extended by 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)
           
 
Method Summary
 PointF getP1()
           
 PointF getP2()
           
 double length()
           
 double ptLineDist(PointF P)
           
 double relativePosition(PointF point)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line2D

public Line2D(float p1x,
              float p1y,
              float p2x,
              float p2y)

Line2D

public Line2D(PointF p1,
              PointF p2)
Method Detail

getP1

public PointF getP1()

getP2

public PointF getP2()

ptLineDist

public double ptLineDist(PointF P)

length

public double length()

relativePosition

public double relativePosition(PointF point)