Searched refs:magSq (Results 1 – 2 of 2) sorted by relevance
27 float magSq = get_length_squared(x, y, z); in Length() local28 if (SkScalarIsFinite(magSq)) { in Length()29 return sk_float_sqrt(magSq); in Length()47 float magSq; in normalize() local48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()54 if (SkScalarIsFinite(magSq)) { in normalize()55 scale = 1.0f / sk_float_sqrt(magSq); in normalize()
70 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize() local71 SkScalar scale = sk_float_rsqrt(magSq); in fast_normalize()