Skip to content

FixedMathSharp v9.0.0

Choose a tag to compare

@mrdav30 mrdav30 released this 23 Nov 05:34
· 4 commits to main since this release

This release makes rotation inputs explicit and improves correctness across camera matrices, geometry queries, decimal rounding, and vector operations.

Breaking changes

  • Removed FixedQuaternion.ToDirection(). Use GetWorldForwardInLocalFrame() for world +Z expressed in local axes, or GetForwardDirection() for the object’s forward direction in world coordinates.
  • Zero quaternions are invalid when applying or converting rotations. Use FixedQuaternion.Identity for an unchanged orientation. Checked rotation/transform APIs return false; throwing APIs reject zero. FixedTransform also rejects zero local rotations.
  • Vector4d.AllComponentsGreaterThanEpsilon() now checks absolute component magnitudes, matching 2D and 3D behavior. Use explicit signed comparisons when positivity is required.

Added and improved

  • Added FixedBoundArea.Area and GetAreaExpansionCost() with exact widened calculations and explicit rounding/overflow behavior.
  • Optimized exact affine sphere transforms and plane normalization while preserving conservative bounds and deterministic results.
  • Expanded public API documentation and coordinate-convention guidance. CI enforces 100% reported line, branch, and executable-method coverage for the core and FluentAssertions assemblies in Release and ReleaseLean.

Fixes

  • Corrected Fixed4x4.CreateLookAt and perspective projection coefficients, including large-input and rounded field-of-view edge cases.
  • Fixed nearest box-surface points, ray slab interval overflow, conservative sphere bounds under affine transforms, and tiny-plane normalization.
  • Corrected full-range decimal rounding, saturated Vector3d.Angle calculations, and Vector4d interpolation endpoints and rounding.
  • Strengthened strict transform-hierarchy validation and fixed Debug hull rejection handling and repeated cylinder/box topology allocations.

Upgrading

Update the standard or Lean package family and its companions together, then rebuild dependent assemblies. Recheck save/load and deterministic replay expectations: corrected numeric and geometry results can change replay hashes. Migrate legacy zero poses explicitly at the owning load boundary.

v8 → v9 migration guide · Full changelog