DescriptionAdd rotateRadians function to AffineTransform
Currently, rotate function takes an argument in only degrees.
In many cases, rotate function is often required radian value instead of degree value.
If we add new rotateRadians function, we will be able to reduce unnecessary operations.
Before : rad -> rad2deg -> deg2rad -> calc sinNcos
After : rad -> calc sinNcos
As a result, we can reduce two multiplication and two division.
Similar case: https://bugs.webkit.org/show_bug.cgi?id=87317
Applications: https://codereview.chromium.org/173593002/
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167603
Patch Set 1 #
Messages
Total messages: 9 (0 generated)
|