Home
last modified time | relevance | path

Searched refs:magSq (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/src/core/
DSkPoint3.cpp36 float magSq = get_length_squared(x, y, z); in Length() local
37 if (SkScalarIsFinite(magSq)) { in Length()
38 return sk_float_sqrt(magSq); in Length()
56 float magSq; in normalize() local
57 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()
64 if (sk_float_isfinite(magSq)) { in normalize()
65 invScale = magSq; in normalize()
/third_party/skia/src/gpu/geometry/
DGrTriangulator.h340 double magSq() const { return fA * fA + fB * fB; } in magSq() function
342 double len = sqrt(this->magSq()); in normalize()
/third_party/skia/src/effects/imagefilters/
DSkLightingImageFilter.cpp68 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize() local
74 SkScalar scale = sk_float_rsqrt_portable(magSq); in fast_normalize()
76 SkScalar scale = sk_float_rsqrt(magSq); in fast_normalize()