/// <summary> /// Returns true if this plane and `other` are approximately equal, by running /// <see cref="Mathd.IsEqualApprox(double, double)"/> 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(Planed other) { return(_normal.IsEqualApprox(other._normal) && Mathd.IsEqualApprox(D, other.D)); }
/// <summary> /// Returns true if this transform and `other` are approximately equal, by running /// <see cref="Vector3d.IsEqualApprox(Vector3d)"/> 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(Transformd other) { return(basis.IsEqualApprox(other.basis) && origin.IsEqualApprox(other.origin)); }
/// <summary> /// Returns true if this AABBd and `other` are approximately equal, by running /// <see cref="Vector3d.IsEqualApprox(Vector3d)"/> on each component. /// </summary> /// <param name="other">The other AABBd to compare.</param> /// <returns>Whether or not the AABBds are approximately equal.</returns> public bool IsEqualApprox(AABBd other) { return _position.IsEqualApprox(other._position) && _size.IsEqualApprox(other._size); }