Class testLine

java.lang.Object
  extended by testLine

public class testLine
extends java.lang.Object


Constructor Summary
testLine()
           
 
Method Summary
 java.awt.Point closest(int x, int y, int x0, int y0, int x1, int y1)
           
 float d(java.awt.Point u, java.awt.Point v)
           
 float dist_Point_to_Line(java.awt.Point P, testLine.Line L)
           
 double dot(java.awt.Point u, java.awt.Point v)
           
 boolean hitLine(int x, int y, PtArr ptArr, float lineWidth)
           
 boolean missedLine(java.awt.Rectangle bnds, java.awt.geom.GeneralPath gp, int lineWidth)
           
 float norm(java.awt.Point v)
           
 java.awt.Point ptAlongSegment(int x, int y, java.awt.geom.GeneralPath gp, float dist)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

testLine

public testLine()
Method Detail

closest

public java.awt.Point closest(int x,
                              int y,
                              int x0,
                              int y0,
                              int x1,
                              int y1)

hitLine

public boolean hitLine(int x,
                       int y,
                       PtArr ptArr,
                       float lineWidth)

missedLine

public boolean missedLine(java.awt.Rectangle bnds,
                          java.awt.geom.GeneralPath gp,
                          int lineWidth)

ptAlongSegment

public java.awt.Point ptAlongSegment(int x,
                                     int y,
                                     java.awt.geom.GeneralPath gp,
                                     float dist)

dist_Point_to_Line

public float dist_Point_to_Line(java.awt.Point P,
                                testLine.Line L)

dot

public double dot(java.awt.Point u,
                  java.awt.Point v)

norm

public float norm(java.awt.Point v)

d

public float d(java.awt.Point u,
               java.awt.Point v)