summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/RotationHelper.c
blob: 8d86781159b63e436fb54b6fa1a2498298b83660 (plain)
1
2
3
4
5
6
7
8
9
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  );
}