Skip to content

Commit 2602dc1

Browse files
Chilleesimonlindholm
authored andcommitted
Added short explanation to linedistance (#130)
1 parent ce7bd0a commit 2602dc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/geometry/lineDistance.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* Source: Basic math
66
* Description:\\
77
\begin{minipage}{75mm}
8-
Returns the signed distance between point p and the line containing points a and b. Positive value on left side and negative on right as seen from a towards b. a==b gives nan. P is supposed to be Point<T> or Point3D<T> where T is e.g. double or long long. It uses products in intermediate steps so watch out for overflow if using int or long long. Using Point3D will always give a non-negative distance.
8+
Returns the signed distance between point p and the line containing points a and b. Positive value on left side and negative on right as seen from a towards b. a==b gives nan. P is supposed to be Point<T> or Point3D<T> where T is e.g. double or long long. It uses products in intermediate steps so watch out for overflow if using int or long long. Using Point3D will always give a non-negative distance. For Point3D, call .dist on the result of the cross product.
99
\end{minipage}
1010
\begin{minipage}{15mm}
1111
\includegraphics[width=\textwidth]{content/geometry/lineDistance}
1212
\end{minipage}
13-
* Status: tested
13+
* Status: tested
1414
*/
1515
#pragma once
1616

0 commit comments

Comments
 (0)