Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Add KisAlgebra2D::normSquared function
Agata Cacko873939043a9f
diff --git a/libs/global/kis_algebra_2d.h b/libs/global/kis_algebra_2d.hindex 51709e909b..dc2988105b 100644--- a/libs/global/kis_algebra_2d.h+++ b/libs/global/kis_algebra_2d.h@@ -64,6 +64,12 @@ qreal norm(const T &a)return std::sqrt(pow2(a.x()) + pow2(a.y()));}+template <class T>+qreal normSquared(const T &a)+{+ return pow2(a.x()) + pow2(a.y());+}+template <class Point>Point normalize(const Point &a){