summaryrefslogtreecommitdiff
path: root/thirdparty/misc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-05-22 10:59:32 +0200
committerGitHub <noreply@github.com>2019-05-22 10:59:32 +0200
commit2dc7be505a2b7bc803d3a3b2d6311d4a435a4234 (patch)
treeb6f641e4d2bf66cb25e0dcacda6571537aa4f2c7 /thirdparty/misc
parent41d3f4787e24dbea3d46d881f80fa406bb05de27 (diff)
parentb7e737639f23e04ed81987a2d9d73feef14d4977 (diff)
Merge pull request #29098 from akien-mga/lf-utf8
Update gitattributes to enforce LF, fix UTF-8 misencoding of thirdparty files
Diffstat (limited to 'thirdparty/misc')
-rw-r--r--thirdparty/misc/clipper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/thirdparty/misc/clipper.cpp b/thirdparty/misc/clipper.cpp
index d3143fe5ab..8c3a59c4ca 100644
--- a/thirdparty/misc/clipper.cpp
+++ b/thirdparty/misc/clipper.cpp
@@ -4329,10 +4329,10 @@ double DistanceFromLineSqrd(
const IntPoint& pt, const IntPoint& ln1, const IntPoint& ln2)
{
//The equation of a line in general form (Ax + By + C = 0)
- //given 2 points (x¹,y¹) & (x²,y²) is ...
- //(y¹ - y²)x + (x² - x¹)y + (y² - y¹)x¹ - (x² - x¹)y¹ = 0
- //A = (y¹ - y²); B = (x² - x¹); C = (y² - y¹)x¹ - (x² - x¹)y¹
- //perpendicular distance of point (x³,y³) = (Ax³ + By³ + C)/Sqrt(A² + B²)
+ //given 2 points (x¹,y¹) & (x²,y²) is ...
+ //(y¹ - y²)x + (x² - x¹)y + (y² - y¹)x¹ - (x² - x¹)y¹ = 0
+ //A = (y¹ - y²); B = (x² - x¹); C = (y² - y¹)x¹ - (x² - x¹)y¹
+ //perpendicular distance of point (x³,y³) = (Ax³ + By³ + C)/Sqrt(A² + B²)
//see http://en.wikipedia.org/wiki/Perpendicular_distance
double A = double(ln1.Y - ln2.Y);
double B = double(ln2.X - ln1.X);