summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorOmkarAcharekar <omkaracharekar12@gmail.com>2022-11-10 13:56:39 +0530
committerHossein <hossein@libreoffice.org>2022-11-19 00:48:16 +0100
commitbcf333309f9a9bde21aac1302cbead2b23822458 (patch)
treeba371dc8a3a6f6467faca5e71b13e0d0f4e48b87 /svx
parentf4b5ecb54dbe216677b3eeb9a03f63da7df8223f (diff)
tdf#147906 Use std::hypot for Pythagorean addition
Change-Id: I19ecfe80e9a927c14db2680188baa54cb4911d4a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142535 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/engine3d/camera3d.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/engine3d/camera3d.cxx b/svx/source/engine3d/camera3d.cxx
index 30a1b09fb36e..135ff9b27a77 100644
--- a/svx/source/engine3d/camera3d.cxx
+++ b/svx/source/engine3d/camera3d.cxx
@@ -108,7 +108,7 @@ void Camera3D::SetBankAngle(double fAngle)
// Rotate on Z axis, to rotate the BankAngle and back
basegfx::B3DHomMatrix aTf;
- const double fV(sqrt(aDiff.getY() * aDiff.getY() + aDiff.getZ() * aDiff.getZ()));
+ const double fV(std::hypot(aDiff.getY(), aDiff.getZ()));
if (fV != 0.0)
{