Esempio 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)));
 }
Esempio 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)));
 }
Esempio 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)));
 }