mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00
Also apply optimizations (set sin/cos to integers) for e.g. -270 degrees.
This commit is contained in:
parent
0413f3f1bf
commit
17681472cc
@ -38,7 +38,13 @@
|
||||
double cos;
|
||||
double sin;
|
||||
|
||||
switch (degreesCounterclockwise)
|
||||
var deg = degreesCounterclockwise % 360;
|
||||
if (deg < 0)
|
||||
{
|
||||
deg += 360;
|
||||
}
|
||||
|
||||
switch (deg)
|
||||
{
|
||||
case 0:
|
||||
case 360:
|
||||
|
Loading…
Reference in New Issue
Block a user