Esempio n. 1
0
 /// <summary>
 /// Returns a lvec3 from component-wise application of Mul (lhs * rhs).
 /// </summary>
 public static lvec3 Mul(lvec3 lhs, lvec3 rhs) => lvec3.Mul(lhs, rhs);
Esempio n. 2
0
 /// <summary>
 /// Returns a lvec3 with independent and identically distributed uniform integer values between minValue (inclusive) and maxValue (exclusive). (minValue == maxValue is allowed and returns minValue. Negative values are allowed.)
 /// </summary>
 public static lvec3 RandomUniform(Random random, lvec3 minValue, lvec3 maxValue) => lvec3.RandomUniform(random, minValue, maxValue);
Esempio n. 3
0
 /// <summary>
 /// Returns true iff this equals rhs component-wise.
 /// </summary>
 public static bool Equals(lvec3 v, lvec3 rhs) => v.Equals(rhs);
Esempio n. 4
0
 /// <summary>
 /// Returns a vector pointing in the same direction as another (faceforward orients a vector to point away from a surface as defined by its normal. If dot(Nref, I) is negative faceforward returns N, otherwise it returns -N).
 /// </summary>
 public static lvec3 FaceForward(lvec3 N, lvec3 I, lvec3 Nref) => lvec3.FaceForward(N, I, Nref);
Esempio n. 5
0
 /// <summary>
 /// Returns a lvec3 with independent and identically distributed uniform integer values between 0 (inclusive) and maxValue (exclusive). (A maxValue of 0 is allowed and returns 0.)
 /// </summary>
 public static lvec3 Random(Random random, lvec3 maxValue) => lvec3.Random(random, maxValue);
Esempio n. 6
0
 /// <summary>
 /// Returns a string representation of this vector using a provided seperator and a format for each component.
 /// </summary>
 public static string ToString(lvec3 v, string sep, string format) => v.ToString(sep, format);
Esempio n. 7
0
 /// <summary>
 /// Calculate the reflection direction for an incident vector (N should be normalized in order to achieve the desired result).
 /// </summary>
 public static lvec3 Reflect(lvec3 I, lvec3 N) => lvec3.Reflect(I, N);
Esempio n. 8
0
 /// <summary>
 /// Returns a lvec3 from component-wise application of RightShift (lhs &gt;&gt; rhs).
 /// </summary>
 public static lvec3 RightShift(lvec3 lhs, ivec3 rhs) => lvec3.RightShift(lhs, rhs);
Esempio n. 9
0
 /// <summary>
 /// Returns the minimal component of this vector.
 /// </summary>
 public static long MinElement(lvec3 v) => v.MinElement;
Esempio n. 10
0
 /// <summary>
 /// Returns a lvec3 from component-wise application of BitwiseAnd (lhs &amp; rhs).
 /// </summary>
 public static lvec3 BitwiseAnd(lvec3 lhs, lvec3 rhs) => lvec3.BitwiseAnd(lhs, rhs);
Esempio n. 11
0
 /// <summary>
 /// Returns a lvec3 from component-wise application of LeftShift (lhs &lt;&lt; rhs).
 /// </summary>
 public static lvec3 LeftShift(lvec3 lhs, ivec3 rhs) => lvec3.LeftShift(lhs, rhs);
Esempio n. 12
0
 /// <summary>
 /// Returns a string representation of this vector using a provided seperator.
 /// </summary>
 public static string ToString(lvec3 v, string sep) => v.ToString(sep);
Esempio n. 13
0
 /// <summary>
 /// Returns a lvec3 from component-wise application of Xor (lhs ^ rhs).
 /// </summary>
 public static lvec3 Xor(lvec3 lhs, lvec3 rhs) => lvec3.Xor(lhs, rhs);
Esempio n. 14
0
 /// <summary>
 /// Returns a lvec3 from component-wise application of Div (lhs / rhs).
 /// </summary>
 public static lvec3 Div(lvec3 lhs, lvec3 rhs) => lvec3.Div(lhs, rhs);
Esempio n. 15
0
 /// <summary>
 /// Returns the p-norm of this vector.
 /// </summary>
 public static double NormP(lvec3 v, double p) => v.NormP(p);
Esempio n. 16
0
 /// <summary>
 /// Returns the maximal component of this vector.
 /// </summary>
 public static long MaxElement(lvec3 v) => v.MaxElement;
Esempio n. 17
0
 /// <summary>
 /// Returns the inner product (dot product, scalar product) of the two vectors.
 /// </summary>
 public static long Dot(lvec3 lhs, lvec3 rhs) => lvec3.Dot(lhs, rhs);
Esempio n. 18
0
 /// <summary>
 /// Returns the euclidean length of this vector.
 /// </summary>
 public static double Length(lvec3 v) => v.Length;
Esempio n. 19
0
 /// <summary>
 /// Returns the squared euclidean distance between the two vectors.
 /// </summary>
 public static double DistanceSqr(lvec3 lhs, lvec3 rhs) => lvec3.DistanceSqr(lhs, rhs);
Esempio n. 20
0
 /// <summary>
 /// Returns the squared euclidean length of this vector.
 /// </summary>
 public static double LengthSqr(lvec3 v) => v.LengthSqr;
Esempio n. 21
0
 /// <summary>
 /// Calculate the refraction direction for an incident vector (The input parameters I and N should be normalized in order to achieve the desired result).
 /// </summary>
 public static lvec3 Refract(lvec3 I, lvec3 N, long eta) => lvec3.Refract(I, N, eta);
Esempio n. 22
0
 /// <summary>
 /// Returns the sum of all components.
 /// </summary>
 public static long Sum(lvec3 v) => v.Sum;
Esempio n. 23
0
 /// <summary>
 /// Returns the outer product (cross product, vector product) of the two vectors.
 /// </summary>
 public static lvec3 Cross(lvec3 l, lvec3 r) => lvec3.Cross(l, r);
Esempio n. 24
0
 /// <summary>
 /// Returns the one-norm of this vector.
 /// </summary>
 public static double Norm1(lvec3 v) => v.Norm1;
Esempio n. 25
0
 /// <summary>
 /// Returns a string representation of this vector using a provided seperator and a format and format provider for each component.
 /// </summary>
 public static string ToString(lvec3 v, string sep, string format, IFormatProvider provider) => v.ToString(sep, format, provider);
Esempio n. 26
0
 /// <summary>
 /// Returns the two-norm (euclidean length) of this vector.
 /// </summary>
 public static double Norm2(lvec3 v) => v.Norm2;
Esempio n. 27
0
 /// <summary>
 /// Returns the number of components (3).
 /// </summary>
 public static int Count(lvec3 v) => v.Count;
Esempio n. 28
0
 /// <summary>
 /// Returns the max-norm of this vector.
 /// </summary>
 public static double NormMax(lvec3 v) => v.NormMax;
Esempio n. 29
0
 /// <summary>
 /// Returns true iff this equals rhs type- and component-wise.
 /// </summary>
 public static bool Equals(lvec3 v, object obj) => v.Equals(obj);
Esempio n. 30
0
 /// <summary>
 /// Returns a lvec3 from component-wise application of Sub (lhs - rhs).
 /// </summary>
 public static lvec3 Sub(lvec3 lhs, lvec3 rhs) => lvec3.Sub(lhs, rhs);