jmonkeyengine
jmonkeyengine copied to clipboard
comparison methods for BoundingBox and BoundingSphere
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.