Exemplo n.º 1
0
 /// <summary>
 /// Calculates the natural logarithm of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the natural logarithms of the corresponding components in the specified vector.</returns>
 public static Vector4F Log(Vector4F v)
 {
     return(new Vector4F(MathEx.Log(v.X), MathEx.Log(v.Y), MathEx.Log(v.Z), MathEx.Log(v.W)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Calculates the natural logarithm of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the natural logarithms of the corresponding components in the specified vector.</returns>
 public static Vector2F Log(Vector2F v)
 {
     return(new Vector2F(MathEx.Log(v.X), MathEx.Log(v.Y)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Calculates the natural logarithm of each component of the specified vector.
 /// </summary>
 /// <param name="v">The specified vector.</param>
 /// <returns>The vector which contains the natural logarithms of the corresponding components in the specified vector.</returns>
 public static Vector3F Log(Vector3F v)
 {
     return(new Vector3F(MathEx.Log(v.X), MathEx.Log(v.Y), MathEx.Log(v.Z)));
 }