Index: include/core/SkScalar.h |
diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h |
index 70509e493c2acf460ec114724dcc97d5d8d40474..4e0d91b2b7ac995675fca46eed05a89959f885a2 100644 |
--- a/include/core/SkScalar.h |
+++ b/include/core/SkScalar.h |
@@ -140,6 +140,7 @@ inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } |
#define SK_ScalarRoot2Over2 0.707106781f |
#define SkDegreesToRadians(degrees) ((degrees) * (SK_ScalarPI / 180)) |
+#define SkRadiansToDegrees(radians) ((radians) * (180 / SK_ScalarPI)) |
float SkScalarSinCos(SkScalar radians, SkScalar* cosValue); |
#define SkScalarSin(radians) (float)sk_float_sin(radians) |
#define SkScalarCos(radians) (float)sk_float_cos(radians) |