Home
last modified time | relevance | path

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

/external/skqp/src/core/
DSkPoint3.cpp27 float magSq = get_length_squared(x, y, z); in Length() local
28 if (SkScalarIsFinite(magSq)) { in Length()
29 return sk_float_sqrt(magSq); in Length()
47 float magSq; in normalize() local
48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()
55 if (sk_float_isfinite(magSq)) { in normalize()
56 invScale = magSq; in normalize()
/external/skia/src/core/
DSkPoint3.cpp27 float magSq = get_length_squared(x, y, z); in Length() local
28 if (SkScalarIsFinite(magSq)) { in Length()
29 return sk_float_sqrt(magSq); in Length()
47 float magSq; in normalize() local
48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()
55 if (sk_float_isfinite(magSq)) { in normalize()
56 invScale = magSq; in normalize()
/external/skia/src/gpu/
DGrTriangulator.h337 double magSq() const { return fA * fA + fB * fB; } in magSq() function
339 double len = sqrt(this->magSq()); in normalize()
/external/skqp/src/gpu/
DGrTessellator.cpp290 double magSq() const { in magSq() function
294 double len = sqrt(this->magSq()); in normalize()
1256 line1.fC += sqrt(left->fLine.magSq()) * (left->fWinding > 0 ? 1 : -1) * dir; in check_for_intersection()
1257 line2.fC += sqrt(right->fLine.magSq()) * (right->fWinding > 0 ? 1 : -1) * dir; in check_for_intersection()
/external/skia/src/effects/imagefilters/
DSkLightingImageFilter.cpp72 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize() local
78 SkScalar scale = sk_float_rsqrt_portable(magSq); in fast_normalize()
80 SkScalar scale = sk_float_rsqrt(magSq); in fast_normalize()
/external/skqp/src/effects/imagefilters/
DSkLightingImageFilter.cpp72 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize() local
73 SkScalar scale = sk_float_rsqrt(magSq); in fast_normalize()