Home
last modified time | relevance | path

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

/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()
54 if (SkScalarIsFinite(magSq)) { in normalize()
55 scale = 1.0f / sk_float_sqrt(magSq); in normalize()
/external/skia/src/gpu/
DGrTessellator.cpp290 double magSq() const { in magSq() function
1532 double denom = 0.0625f * e->fLine.magSq(); in simplify_boundary()
1580 double offset = radius * sqrt(prevEdge->fLine.magSq()) * prevEdge->fWinding; in stroke_boundary()
1589 double offset = radius * sqrt(e->fLine.magSq()) * e->fWinding; in stroke_boundary()
/external/skia/src/effects/
DSkLightingImageFilter.cpp73 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize() local
74 SkScalar scale = sk_float_rsqrt(magSq); in fast_normalize()