Exemplo n.º 1
0
 /// <summary>
 /// Applies this transformation to the given vector.
 /// </summary>
 /// <param name="vector"></param>
 /// <returns></returns>
 public Vec2d Apply(Vec2d vector)
 {
     return(new Vec2d(
                Vec2d.Dot(Row0, vector),
                Vec2d.Dot(Row1, vector)
                ));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Applies the inverse of this rotation to the given vector.
 /// </summary>
 /// <param name="vector"></param>
 /// <returns></returns>
 public Vec2d ApplyInverse(Vec2d vector)
 {
     return(new Vec2d(Vec2d.Dot(vector, X), Vec2d.Dot(vector, Y)));
 }