Exemplo n.º 1
0
 public SwfVector Transform(SwfVector vector)
 {
     return(new SwfVector {
         X = (int)(vector.X * (HasScale ? ScaleX : 1) + vector.Y * (HasRotate ? RotateSkew1 : 0) + TranslateX),
         Y = (int)(vector.Y * (HasScale ? ScaleY : 1) + vector.X * (HasRotate ? RotateSkew0 : 0) + TranslateY)
     });
 }
Exemplo n.º 2
0
 public SwfVector Transform(SwfVector vector)
 {
     return new SwfVector {
         X = (int)(vector.X * (HasScale ? ScaleX : 1) + vector.Y * (HasRotate ? RotateSkew1 : 0) + TranslateX),
         Y = (int)(vector.Y * (HasScale ? ScaleY : 1) + vector.X * (HasRotate ? RotateSkew0 : 0) + TranslateY)
     };
 }