public bool Equals(Basis other)
 {
     return(_x.Equals(other[0]) && _y.Equals(other[1]) && _z.Equals(other[2]));
 }
Beispiel #2
0
 /// <summary>
 /// Returns <see langword="true"/> if the transforms are exactly equal.
 /// Note: Due to floating-point precision errors, consider using
 /// <see cref="IsEqualApprox"/> instead, which is more reliable.
 /// </summary>
 /// <param name="other">The other transform to compare.</param>
 /// <returns>Whether or not the matrices are exactly equal.</returns>
 public bool Equals(Transform3D other)
 {
     return(basis.Equals(other.basis) && origin.Equals(other.origin));
 }
Beispiel #3
0
 public bool Equals(Basis other)
 {
     return(x.Equals(other.x) && y.Equals(other.y) && z.Equals(other.z));
 }