Repository navigation
FixedMathSharp v9.0.0
This release makes rotation inputs explicit and improves correctness across camera matrices, geometry queries, decimal rounding, and vector operations.
Breaking changes
- Removed
FixedQuaternion.ToDirection(). UseGetWorldForwardInLocalFrame()for world +Z expressed in local axes, orGetForwardDirection()for the object’s forward direction in world coordinates. - Zero quaternions are invalid when applying or converting rotations. Use
FixedQuaternion.Identityfor an unchanged orientation. Checked rotation/transform APIs returnfalse; throwing APIs reject zero.FixedTransformalso 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.AreaandGetAreaExpansionCost()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.CreateLookAtand 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.Anglecalculations, andVector4dinterpolation 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.