15 return x *
x +
y *
y + z * z;
37 return (
float)
sqrt(xx * xx + yy * yy + zz * zz);
67 invScale = xx * xx + yy * yy + zz * zz;
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
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
static SkScalar Length(SkScalar x, SkScalar y, SkScalar z)
void set(SkScalar x, SkScalar y, SkScalar z)
void scale(SkScalar value)