fork download
  1. public PointF TransForm(PointF Pos, double RotRadian, SizeF Scale, PointF Move)
  2. {
  3. PointF Ret = new PointF();
  4. float Sin = (float)Math.Sin(RotRadian);
  5. float Cos = (float)Math.Cos(RotRadian);
  6.  
  7. Ret.X = ((Pos.X * Scale.Width) * Cos) - ((Pos.Y * Scale.Height) * Sin) + Move.X;
  8. Ret.Y = ((Pos.X * Scale.Width) * Sin) + ((Pos.Y * Scale.Height) * Cos) + Move.Y;
  9.  
  10. return Ret;
  11. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty