jmonkeyengine icon indicating copy to clipboard operation
jmonkeyengine copied to clipboard

comparison methods for BoundingBox and BoundingSphere

Open stephengold opened this issue 2 years ago • 0 comments

Currently if you invoke equals() on a BoundingBox or BoundingSphere you get Object.equals(), which ignores the object's components. Usually that isn't what's desired.

By analogy with com.jme3.math classes such as Matrix4f, Quaternion, and Vector3f, these 2 classes should:

  • override the equals() method to test for precise equality of all components (distinguishing -0 from 0) AND
  • provide an isSimilar() method to test for approximate equality of all components.

stephengold avatar Apr 24 '24 19:04 stephengold