Exemplo n.º 1
0
 /// <summary>
 /// Calculates the arc-tangent of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the angles in radians whose tangents are equal to the
 /// corresponding components in the specified vector.</returns>
 public static Vector2F Atan(Vector2F v)
 {
     return(new Vector2F(MathEx.Atan(v.X), MathEx.Atan(v.Y)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Calculates the arc-tangent of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the angles in radians whose tangents are equal to the
 /// corresponding components in the specified vector.</returns>
 public static Vector4F Atan(Vector4F v)
 {
     return(new Vector4F(MathEx.Atan(v.X), MathEx.Atan(v.Y), MathEx.Atan(v.Z), MathEx.Atan(v.W)));
 }