Lines Matching refs:SkScalar

22 typedef float SkScalar;  typedef
65 typedef double SkScalar; typedef
110 #define SkIntToScalar(x) static_cast<SkScalar>(x)
114 #define SkFloatToScalar(x) static_cast<SkScalar>(x)
116 #define SkDoubleToScalar(x) static_cast<SkScalar>(x)
120 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN()
124 static inline bool SkScalarIsFinite(SkScalar x) { in SkScalarIsFinite()
129 SkScalar prod = x * 0; in SkScalarIsFinite()
134 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite()
135 SkScalar prod = 0; in SkScalarsAreFinite()
142 static inline bool SkScalarsAreFinite(const SkScalar array[], int count) { in SkScalarsAreFinite()
143 SkScalar prod = 0; in SkScalarsAreFinite()
165 static inline int SkDScalarRoundToInt(SkScalar x) { in SkDScalarRoundToInt()
171 static inline SkScalar SkScalarClampMax(SkScalar x, SkScalar max) { in SkScalarClampMax()
173 x = SkTMax<SkScalar>(x, 0); in SkScalarClampMax()
177 static inline SkScalar SkScalarPin(SkScalar x, SkScalar min, SkScalar max) { in SkScalarPin()
181 SkScalar SkScalarSinCos(SkScalar radians, SkScalar* cosValue);
183 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare()
185 #define SkScalarMul(a, b) ((SkScalar)(a) * (b))
186 #define SkScalarMulAdd(a, b, c) ((SkScalar)(a) * (b) + (c))
187 #define SkScalarMulDiv(a, b, c) ((SkScalar)(a) * (b) / (c))
196 static inline SkScalar SkMaxScalar(SkScalar a, SkScalar b) { return a > b ? a : b; } in SkMaxScalar()
197 static inline SkScalar SkMinScalar(SkScalar a, SkScalar b) { return a < b ? a : b; } in SkMinScalar()
199 static inline bool SkScalarIsInt(SkScalar x) { in SkScalarIsInt()
200 return x == (SkScalar)(int)x; in SkScalarIsInt()
209 static inline int SkScalarSignAsInt(SkScalar x) { in SkScalarSignAsInt()
214 static inline SkScalar SkScalarSignAsScalar(SkScalar x) { in SkScalarSignAsScalar()
220 static inline bool SkScalarNearlyZero(SkScalar x,
221 SkScalar tolerance = SK_ScalarNearlyZero) {
226 static inline bool SkScalarNearlyEqual(SkScalar x, SkScalar y,
227 SkScalar tolerance = SK_ScalarNearlyZero) {
238 static inline SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t) { in SkScalarInterp()
253 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[],
254 const SkScalar values[], int length);
259 static inline bool SkScalarsEqual(const SkScalar a[], const SkScalar b[], int n) { in SkScalarsEqual()