From e23c04b79db422a027d1e26089d8c57f4ee9c8b8 Mon Sep 17 00:00:00 2001 From: Antti H S Laaksonen Date: Sat, 18 Mar 2017 12:21:52 +0200 Subject: [PATCH] Fix wrong distance [closes #34] --- chapter29.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter29.tex b/chapter29.tex index 209ba21..78a3759 100644 --- a/chapter29.tex +++ b/chapter29.tex @@ -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. \ No newline at end of file +difference of the rotated coordinates has to be maximum.