15 return x *
x +
y *
y + z * z;
32 return std::sqrt(magSq);
37 return (
float)sqrt(xx * xx + yy * yy + zz * zz);
67 invScale = xx * xx + yy * yy + zz * zz;
70 double scale = 1 / sqrt(invScale);
static bool SkIsFinite(T x, Pack... values)
static float get_length_squared(float x, float y, float z)
static bool is_length_nearly_zero(float x, float y, float z, float *lengthSquared)
#define SK_ScalarNearlyZero
static SkScalar Length(SkScalar x, SkScalar y, SkScalar z)
void set(SkScalar x, SkScalar y, SkScalar z)