Searched refs:magSq (Results 1 – 3 of 3) sorted by relevance
36 float magSq = get_length_squared(x, y, z); in Length() local37 if (SkScalarIsFinite(magSq)) { in Length()38 return sk_float_sqrt(magSq); in Length()56 float magSq; in normalize() local57 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()64 if (sk_float_isfinite(magSq)) { in normalize()65 invScale = magSq; in normalize()
340 double magSq() const { return fA * fA + fB * fB; } in magSq() function342 double len = sqrt(this->magSq()); in normalize()
68 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize() local74 SkScalar scale = sk_float_rsqrt_portable(magSq); in fast_normalize()76 SkScalar scale = sk_float_rsqrt(magSq); in fast_normalize()