Beispiel #1
0
 /// <summary>
 /// Calculates the tangent of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the tangents of the corresponding components in the specified vector.</returns>
 public static Vector4F Tan(Vector4F v)
 {
     return(new Vector4F(MathEx.Tan(v.X), MathEx.Tan(v.Y), MathEx.Tan(v.Z), MathEx.Tan(v.W)));
 }
Beispiel #2
0
 /// <summary>
 /// Calculates the tangent of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the tangents of the corresponding components in the specified vector.</returns>
 public static Vector2F Tan(Vector2F v)
 {
     return(new Vector2F(MathEx.Tan(v.X), MathEx.Tan(v.Y)));
 }
Beispiel #3
0
 /// <summary>
 /// Calculates the tangent of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the tangents of the corresponding components in the specified vector.</returns>
 public static Vector3F Tan(Vector3F v)
 {
     return(new Vector3F(MathEx.Tan(v.X), MathEx.Tan(v.Y), MathEx.Tan(v.Z)));
 }