/// <summary>Vector Rotation (only).</summary> /// <param name="v">IntVector2D to be rotated.</param> /// <returns>New IntVector2D resulting from rotaion (only) of vector vector by this @this /// (ignoring any translation components of this @this).</returns> public IntVector2D Rotate(IntVector2D v) { return(new IntVector2D(v.X * M11 + v.Y * M12, v.X * M21 + v.Y * M22, v.W * M33).Normalize()); }
/// <summary> Initializes a new <code>IntMatrix2D</code> as the translation defined by the vector vector.</summary> /// <param name="vector">the translation vector</param> public IntMatrix2D(IntVector2D vector) : this(1, 0, 0, 1, vector.X, vector.Y, 1) { }
/// <summary>Returns the result of applying the (row) vector <c>vector</c> to the @this <c>m</c>.</summary> public static IntVector2D Multiply(IntVector2D v, IntMatrix2D m) { return(v * m); }