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); }
public static Vector2 ToVector2(Matrix2 matrix) { return(new Vector2((float)matrix.X, (float)matrix.Y)); }
public Matrix2 Set(Matrix2 matrix) { return(matrix); }
public static Matrix2 Rotate(Matrix2 vector, double angle) { return(Matrix.Rotation(angle) * vector); }