From 94721f5ab8af9e7d91a4de58baf2c8d849ceab6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sun, 10 May 2020 16:47:11 +0200 Subject: Revert "Renamed plane's d to distance" This reverts commit ec7b481170dcd6a7b4cf0e6c1221e204ff7945f3. This was wrong, `d` is not a distance but the `d` constant in the parametric equation `ax + by + cz = d` describing the plane. --- main/tests/test_math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/tests') diff --git a/main/tests/test_math.cpp b/main/tests/test_math.cpp index d0bebaad72..b6ef573b36 100644 --- a/main/tests/test_math.cpp +++ b/main/tests/test_math.cpp @@ -380,7 +380,7 @@ void test_vec(Plane p_vec) { Plane v0 = cm.xform4(p_vec); print_line("out: " + v0); - v0.normal.z = (v0.distance / 100.0 * 2.0 - 1.0) * v0.distance; + v0.normal.z = (v0.d / 100.0 * 2.0 - 1.0) * v0.d; print_line("out_F: " + v0); } -- cgit v1.2.3