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