Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkPoint.cpp101 float mag2; in Normalize() local
102 if (isLengthNearlyZero(x, y, &mag2)) { in Normalize()
108 if (SkScalarIsFinite(mag2)) { in Normalize()
109 mag = sk_float_sqrt(mag2); in Normalize()
130 float mag2 = dx * dx + dy * dy; in Length() local
131 if (SkScalarIsFinite(mag2)) { in Length()
132 return sk_float_sqrt(mag2); in Length()
149 float mag2; in setLength() local
150 if (isLengthNearlyZero(x, y, &mag2)) { in setLength()
156 if (SkScalarIsFinite(mag2)) { in setLength()
[all …]
DSkPaint.cpp368 static SkScalar mag2(SkScalar x, SkScalar y) { in mag2() function
373 return mag2(m[SkMatrix::kMScaleX], m[SkMatrix::kMSkewY]) > ma2max in tooBig()
375 mag2(m[SkMatrix::kMSkewX], m[SkMatrix::kMScaleY]) > ma2max; in tooBig()
/external/eigen/unsupported/doc/examples/
DFFT.cpp23 T mag2(T a) in mag2() function
28 T mag2(std::complex<T> a) in mag2() function
34 T mag2(const std::vector<T> & vec) in mag2() function
38 out += mag2(vec[k]); in mag2()
43 T mag2(const std::vector<std::complex<T> > & vec) in mag2() function
47 out += mag2(vec[k]); in mag2()
88 long double rmse = mag2(timebuf - timebuf2) / mag2(timebuf); in fwd_inv()