Exemplo n.º 1
0
 /// <summary>
 /// Returns <see langword="true"/> if this transform and <paramref name="other"/> are approximately equal,
 /// by running <see cref="Vector3.IsEqualApprox(Vector3)"/> on each component.
 /// </summary>
 /// <param name="other">The other transform to compare.</param>
 /// <returns>Whether or not the matrices are approximately equal.</returns>
 public bool IsEqualApprox(Transform3D other)
 {
     return(basis.IsEqualApprox(other.basis) && origin.IsEqualApprox(other.origin));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns <see langword="true"/> if this AABB and <paramref name="other"/> are approximately equal,
 /// by running <see cref="Vector3.IsEqualApprox(Vector3)"/> on each component.
 /// </summary>
 /// <param name="other">The other AABB to compare.</param>
 /// <returns>Whether or not the AABBs structures are approximately equal.</returns>
 public bool IsEqualApprox(AABB other)
 {
     return(_position.IsEqualApprox(other._position) && _size.IsEqualApprox(other._size));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Returns true if this plane and `other` are approximately equal, by running
 /// <see cref="Mathf.IsEqualApprox(real_t, real_t)"/> on each component.
 /// </summary>
 /// <param name="other">The other plane to compare.</param>
 /// <returns>Whether or not the planes are approximately equal.</returns>
 public bool IsEqualApprox(Plane other)
 {
     return(_normal.IsEqualApprox(other._normal) && Mathf.IsEqualApprox(D, other.D));
 }