diff options
Diffstat (limited to 'TemplePushing.c4s/System.c4g/RotationHelper.c')
| -rw-r--r-- | TemplePushing.c4s/System.c4g/RotationHelper.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/RotationHelper.c b/TemplePushing.c4s/System.c4g/RotationHelper.c new file mode 100644 index 0000000..8d86781 --- /dev/null +++ b/TemplePushing.c4s/System.c4g/RotationHelper.c @@ -0,0 +1,10 @@ + +#strict 2 + + +global func SetDTRotation (int r, int xoff, int yoff, object obj) +{ + var fsin=Sin(r, 1000), fcos=Cos(r, 1000); // set matrix values + SetObjDrawTransform ( +fcos, +fsin, (1000-fcos)*xoff - fsin*yoff, + -fsin, +fcos, (1000-fcos)*yoff + fsin*xoff, obj ); +}
\ No newline at end of file |
