• Home
  • Raw
  • Download

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()
78 SkScalar prod = 0; in SkScalarsAreFinite()
100 static inline int SkDScalarRoundToInt(SkScalar x) { in SkDScalarRoundToInt()
107 static inline SkScalar SkScalarFraction(SkScalar x) { in SkScalarFraction()
111 static inline SkScalar SkScalarClampMax(SkScalar x, SkScalar max) { in SkScalarClampMax()
113 x = SkTMax<SkScalar>(x, 0); in SkScalarClampMax()
117 static inline SkScalar SkScalarPin(SkScalar x, SkScalar min, SkScalar max) { in SkScalarPin()
121 SkScalar SkScalarSinCos(SkScalar radians, SkScalar* cosValue);
123 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare()
132 static inline SkScalar SkMaxScalar(SkScalar a, SkScalar b) { return a > b ? a : b; } in SkMaxScalar()
133 static inline SkScalar SkMinScalar(SkScalar a, SkScalar b) { return a < b ? a : b; } in SkMinScalar()
135 static inline bool SkScalarIsInt(SkScalar x) { in SkScalarIsInt()
145 static inline int SkScalarSignAsInt(SkScalar x) { in SkScalarSignAsInt()
150 static inline SkScalar SkScalarSignAsScalar(SkScalar x) { in SkScalarSignAsScalar()
156 static inline bool SkScalarNearlyZero(SkScalar x,
157 SkScalar tolerance = SK_ScalarNearlyZero) {
162 static inline bool SkScalarNearlyEqual(SkScalar x, SkScalar y,
163 SkScalar tolerance = SK_ScalarNearlyZero) {
174 static inline SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t) { in SkScalarInterp()
189 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[],
190 const SkScalar values[], int length);
195 static inline bool SkScalarsEqual(const SkScalar a[], const SkScalar b[], int n) { in SkScalarsEqual()