Beispiel #1
0
 /// <summary>
 /// Creates a new <see cref="Vector2D"/> that contains a transformation of 2d-vector by the specified <see cref="QuaternionD"/>, representing the rotation.
 /// </summary>
 /// <param name="value">Source <see cref="Vector2D"/>.</param>
 /// <param name="rotation">The <see cref="QuaternionD"/> which contains rotation transformation.</param>
 /// <returns>Transformed <see cref="Vector2D"/>.</returns>
 public static Vector2D Transform(Vector2D value, QuaternionD rotation)
 {
     Transform(ref value, ref rotation, out value);
     return(value);
 }