Searched refs:square (Results 1 - 4 of 4) sorted by relevance

/inkscape/src/livarot/
H A DPathCutting.cpp946 template<typename T> inline static T square(T x) {return x*x;} function
963 thisRangeSquared = square(pts[i].p[Geom::X] - pos[Geom::X]) + square(pts[i].p[Geom::Y] - pos[Geom::Y]);
995 thisRangeSquared = square(p1[Geom::X] - localPos[Geom::X]) + square(p1[Geom::Y] - localPos[Geom::Y]);
998 thisRangeSquared = square(p2[Geom::X] - localPos[Geom::X]) + square(p2[Geom::Y] - localPos[Geom::Y]);
1001 thisRangeSquared = square(nearestY * gradient + intersection - localPos[Geom::X]) + square(nearestY - localPos[Geom::Y]);
/inkscape/src/ui/tools/
H A Dpencil-tool.cpp623 square(double const x) function in namespace:Inkscape::UI::Tools
643 double tolerance_sq = 0.02 * square(this->desktop->w2d().descrim() * tol) * exp(0.2 * tol - 2);
716 double tolerance_sq = 0.02 * square(this->desktop->w2d().descrim() * tol) * exp(0.2 * tol - 2);
H A Dcalligraphic-tool.cpp1034 static double square(double const x) function in namespace:Inkscape::UI::Tools
1040 double const tolerance_sq = square( desktop->w2d().descrim() * TOLERANCE_CALLIGRAPHIC );
H A Deraser-tool.cpp885 static double square(double const x) function in namespace:Inkscape::UI::Tools
891 double const tolerance_sq = square( desktop->w2d().descrim() * TOLERANCE_ERASER );

Completed in 27 milliseconds