diff options
author | 2014-01-06 18:17:24 +0000 | |
---|---|---|
committer | 2014-01-06 18:17:24 +0000 | |
commit | c8d732800e1a660fca6d2478fc24d6e6935ef8ad (patch) | |
tree | 288220e147cc7af5e5c3bd5051fc87f464001c11 /include | |
parent | d0419b1fe781ed21d4aa0dc80df6b3e79ed37e46 (diff) |
Renamed JsCanvas to JsContext and moved into it's own file.
Fleshed out a lot of the Path interface.
BUG=
R=robertphillips@google.com, tfarina@chromium.org, reed@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/121303004
git-svn-id: http://skia.googlecode.com/svn/trunk@12913 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkScalar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h index 70509e493c..4e0d91b2b7 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) |