mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-07-15 23:24:37 +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 cos;
|
||||||
double sin;
|
double sin;
|
||||||
|
|
||||||
switch (degreesCounterclockwise)
|
var deg = degreesCounterclockwise % 360;
|
||||||
|
if (deg < 0)
|
||||||
|
{
|
||||||
|
deg += 360;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (deg)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
case 360:
|
case 360:
|
||||||
|
Loading…
Reference in New Issue
Block a user