Exemplo n.º 1
0
 /// <summary>
 /// A method to calculate a Double raised to the specified power.
 /// </summary>
 /// <param name="v1">A vector.</param>
 /// <param name="v2">A vector.</param>
 /// <returns>The values of v1 raised to the specified power of v2: v1^v2</returns>
 public IVector2D <T> Pow(IVector2D <T> v1, IVector2D <T> v2)
 {
     return(new Vector2D <T>(Math.Pow(v1.X, v2.X),
                             Math.Pow(v1.Y, v2.Y)));
 }