Fix wrong distance [closes #34]
This commit is contained in:
parent
5562d7327d
commit
e23c04b79d
|
@ -196,7 +196,7 @@ between points $(4,2)$ and $(3,-1)$:
|
|||
\begin{lstlisting}
|
||||
P a = {4,2};
|
||||
P b = {3,-1};
|
||||
cout << abs(b-a) << "\n"; // 3.60555
|
||||
cout << abs(b-a) << "\n"; // 3.16228
|
||||
\end{lstlisting}
|
||||
|
||||
The function \texttt{arg(v)} calculates the
|
||||
|
@ -782,4 +782,4 @@ we should find two points whose
|
|||
rotated coordinates maximize the value of
|
||||
\[\max(|x'_1-x'_2|,|y'_1-y'_2|).\]
|
||||
This is easy, because either the horizontal or vertical
|
||||
difference of the rotated coordinates has to be maximum.
|
||||
difference of the rotated coordinates has to be maximum.
|
||||
|
|
Loading…
Reference in New Issue