Revision 1548 branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/cad/TrigonometricalFunctions.java
TrigonometricalFunctions.java | ||
---|---|---|
157 | 157 |
*/ |
158 | 158 |
public static Point2D getPerpendicularPoint(Point2D p1, Point2D p2, |
159 | 159 |
Point2D perpPoint, double dist) { |
160 |
return null; |
|
160 |
Point2D[] p=getPerpendicular(p1,p2,perpPoint); |
|
161 |
Point2D unit=getUnitVector(p[0],p[1]); |
|
162 |
return new Point2D.Double(perpPoint.getX()+unit.getX()*dist,perpPoint.getY()+unit.getY()*dist); |
|
161 | 163 |
} |
162 | 164 |
|
163 | 165 |
/** |
Also available in: Unified diff