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