Lines Matching refs:SkScalar
16 typedef float SkScalar; typedef
56 #define SkIntToScalar(x) static_cast<SkScalar>(x)
61 #define SkFloatToScalar(x) static_cast<SkScalar>(x)
67 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN()
71 static inline bool SkScalarIsFinite(SkScalar x) { return sk_float_isfinite(x); } in SkScalarIsFinite()
73 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite()
77 static inline bool SkScalarsAreFinite(const SkScalar array[], int count) { in SkScalarsAreFinite()
95 static inline int SkDScalarRoundToInt(SkScalar x) { in SkDScalarRoundToInt()
102 static inline SkScalar SkScalarFraction(SkScalar x) { in SkScalarFraction()
106 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare()
115 static inline bool SkScalarIsInt(SkScalar x) { in SkScalarIsInt()
125 static inline int SkScalarSignAsInt(SkScalar x) { in SkScalarSignAsInt()
130 static inline SkScalar SkScalarSignAsScalar(SkScalar x) { in SkScalarSignAsScalar()
136 static inline bool SkScalarNearlyZero(SkScalar x,
137 SkScalar tolerance = SK_ScalarNearlyZero) {
142 static inline bool SkScalarNearlyEqual(SkScalar x, SkScalar y,
143 SkScalar tolerance = SK_ScalarNearlyZero) {
148 static inline float SkScalarSinSnapToZero(SkScalar radians) { in SkScalarSinSnapToZero()
153 static inline float SkScalarCosSnapToZero(SkScalar radians) { in SkScalarCosSnapToZero()
164 static inline SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t) { in SkScalarInterp()
178 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[],
179 const SkScalar values[], int length);
184 static inline bool SkScalarsEqual(const SkScalar a[], const SkScalar b[], int n) { in SkScalarsEqual()