Esempio n. 1
0
 /// <summary>
 /// Merge this six-vector with another.
 /// The highest value of each component will be taken
 /// for the merged vector.
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public SixVector MergeMax(SixVector other)
 {
     return(new SixVector(
                Math.Max(_X, other._X),
                Math.Max(_Y, other._Y),
                Math.Max(_Z, other._Z),
                Math.Max(_XX, other._XX),
                Math.Max(_YY, other._YY),
                Math.Max(_ZZ, other._ZZ)));
 }
Esempio n. 2
0
 /// <summary>
 /// IEquatable implementation.
 /// Checks whether this six-vector is equal to another.
 /// </summary>
 /// <param name="other">Another vector to check</param>
 /// <returns>True if the components of the two vectors are equal, else false.</returns>
 public bool Equals(SixVector other)
 {
     return(X == other.X && Y == other.Y && Z == other.Z &&
            XX == other.XX && YY == other.YY && ZZ == other.ZZ);
 }