Skip to content

Add EPSILON comparisons, == operators and exceptions - #1

Merged
obarry merged 1 commit into
masterfrom
work
Oct 4, 2026
Merged

obarry merged 1 commit into
masterfrom
work

Conversation

@obarry

@obarry obarry commented Oct 4, 2026

Copy link
Copy Markdown
Owner
  • Add Constants.h (sizes, axes, EPSILON = 1e-4 as in Aventura)
  • Add MathTools::equals(float, float) with EPSILON tolerance
  • Add the Aventura exception hierarchy (Vector3DException and subclasses)
  • Add operator== and operator!= with EPSILON tolerance on vectors and matrices
  • Vector get(i)/set(i) now throw IndexOutOfBoundException instead of returning NAN or ignoring the call, as in Aventura
  • Tests use the new operators and cover the exceptions

- Add Constants.h (sizes, axes, EPSILON = 1e-4 as in Aventura)
- Add MathTools::equals(float, float) with EPSILON tolerance
- Add the Aventura exception hierarchy (Vector3DException and subclasses)
- Add operator== and operator!= with EPSILON tolerance on vectors and matrices
- Vector get(i)/set(i) now throw IndexOutOfBoundException instead of
  returning NAN or ignoring the call, as in Aventura
- Tests use the new operators and cover the exceptions

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FmLcUnAfhtVMCNPGNw5Lxb
@obarry
obarry merged commit 85b6585 into master Oct 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant