office-gobmx/basegfx
RMZeroFour 45d951492a tdf#147906 Use std::hypot for Pythagorean distance
As part of the efforts in tdf#147906 to replace expressions like
sqrt(a^2 + b^2) with std::hypot(a, b), to eliminate overflow
errors, this commit performs the changes in certain files.

This also changes the B3DVector::normalize and B2DVector::normalize
methods to have similar behaviour.

Change-Id: I142585cfa594849f06cd06517ad9d40430df2ade
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165555
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
2024-04-05 13:59:33 +02:00
..
inc/pch
qa
source tdf#147906 Use std::hypot for Pythagorean distance 2024-04-05 13:59:33 +02:00
test
CppunitTest_basegfx.mk
IwyuFilter_basegfx.yaml
Library_basegfx.mk
Makefile
Module_basegfx.mk
README.md

Algorithms and Data Types for Graphics

Algorithms and data types for graphics (e.g. polygons, vectors, matrices and the like - see that used in canvas).