Skip to content

comparison methods for BoundingBox and BoundingSphere #2249

@stephengold

Description

@stephengold

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions