Esempio n. 1
0
        public void SetRotateY(double radians)
        {
            Matrix2 m = new Matrix2((float)Math.Cos(radians), (float)Math.Sin(radians), (float)-Math.Sin(radians), (float)Math.Cos(radians));

            Set(m);
        }
Esempio n. 2
0
 public static Vector2 ToVector2(Matrix2 matrix)
 {
     return(new Vector2((float)matrix.X, (float)matrix.Y));
 }
Esempio n. 3
0
 public Matrix2 Set(Matrix2 matrix)
 {
     return(matrix);
 }
Esempio n. 4
0
 public static Matrix2 Rotate(Matrix2 vector, double angle)
 {
     return(Matrix.Rotation(angle) * vector);
 }