Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Commit 52cb5d0

Browse files
author
Francesco Noya
committed
fix characters
1 parent 97492f8 commit 52cb5d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Clipper/src/de/lighti/clipper/Point.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ static boolean arePointsClose(Point<? extends Number> pt1, Point<? extends Numbe
8888

8989
static double distanceFromLineSqrd(Point<? extends Number> pt, Point<? extends Number> ln1, Point<? extends Number> ln2 ) {
9090
//The equation of a line in general form (Ax + By + C = 0)
91-
//given 2 points (x�,y�) & (x�,y�) is ...
92-
//(y - y)x + (x - x)y + (y - y�)x� - (x - x�)y� = 0
93-
//A = (y - y); B = (x - x); C = (y - y�)x� - (x - x�)y�
94-
//perpendicular distance of point (x�,y�) = (Ax + By + C)/Sqrt(A + B)
91+
//given 2 points (x¹,y¹) & (x²,y²) is ...
92+
//(y¹ - y²)x + (x² - x¹)y + (y² - y¹)x¹ - (x² - x¹)y¹ = 0
93+
//A = (y¹ - y²); B = (x² - x¹); C = (y² - y¹)x¹ - (x² - x¹)y¹
94+
//perpendicular distance of point (x³,y³) = (Ax³ + By³ + C)/Sqrt(A² + B²)
9595
//see http://en.wikipedia.org/wiki/Perpendicular_distance
9696
final double A = ln1.y.doubleValue() - ln2.y.doubleValue();
9797
final double B = ln2.x.doubleValue() - ln1.x.doubleValue();

0 commit comments

Comments
 (0)