Expected value of rotate transormation? #2545
-
It seems like a My main question is: How can I achieve negative rotation on a group? Note, I'm using reanimated to animate the value. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The rotation transformation in Skia expects values measured in radians, for instance 360 degrees is equivalent |
Beta Was this translation helpful? Give feedback.
The rotation transformation in Skia expects values measured in radians, for instance 360 degrees is equivalent
2 * Math.PI
, if you want to convert degrees to radians is as easy asconst radians = degrees * (Math.PI / 180)