From f79a9dfecfc042520704f9ad7e563114ee6ed5f7 Mon Sep 17 00:00:00 2001 From: Burak Canik Date: Wed, 5 Jul 2023 15:19:49 +0200 Subject: [PATCH] Math: fix & clarify a Deg conversion snippet. Got messed up when making the documentation snippets compiled back in 673caa23bf447f0baf028872af3ef49b2dbc8282. --- doc/snippets/MagnumMath.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/snippets/MagnumMath.cpp b/doc/snippets/MagnumMath.cpp index 641f3e50a..2fe22e44c 100644 --- a/doc/snippets/MagnumMath.cpp +++ b/doc/snippets/MagnumMath.cpp @@ -703,11 +703,11 @@ if(x < 30.0_degf) foo(); Float sine(Rad angle); Float a = sine(60.0_degf); // the same as sine(1.047_radf) Degd b = 1.047_rad; // the same as 60.0_deg -Double c = Double(b); // 60.0 -//Float d = a; // error, no implicit conversion +//Double c = b; // error, no implicit conversion +Double d = Double(b); // 60.0 /* [Deg-usage-conversion] */ static_cast(a); -static_cast(c); +static_cast(d); } {