Skip to content

Releases: mrdav30/FixedMathSharp

FixedMathSharp v1.2.2

11 Mar 05:08
Compare
Choose a tag to compare
  • Improved Trigonometric Functions – Enhanced Sin precision and and in turn Cos.
  • Better Quaternion & Vector Normalization – Fixed rounding errors and ensured proper unit magnitudes.
  • Added Helper Methods – Streamlined common math operations for better performance and maintainability.

For details, see PR #35. 🚀

FixedMathSharp v1.2.1

04 Mar 18:13
Compare
Choose a tag to compare
  • Enhancements:

    • Fixed4x4 Struct:

      • Refactored to support both affine and full 4x4 transformations, optimizing performance for common cases.​
      • Introduced TransformPoint and InverseTransformPoint methods for efficient point transformations.​
      • Renamed SRT and TRS methods for improved clarity.​
    • FixedQuaternion Struct:

      • Added ToAngularVelocity method to facilitate conversion of quaternion rotations to angular velocity vectors.​
  • Bug Fixes:

    • Addressed various minor bugs to enhance overall stability and performance.

FixedMathSharp v1.2.0

24 Feb 03:15
Compare
Choose a tag to compare

New Features

  • FixedCurve Class Added

    • Introduced a new FixedCurve class to facilitate advanced curve calculations and interpolations.
  • Interpolation Methods in FixedMath

    • Added SmoothStep and CubicInterpolate methods to the FixedMath class, enabling smoother transitions and cubic interpolations.

Improvements

  • Refactoring of Fixed3x3 and Fixed4x4
    • Performed code cleanup and refactoring on the Fixed3x3 and Fixed4x4 classes to enhance readability and maintainability.

📢 FixedMathSharp v1.1.0 🚀

18 Feb 23:35
298da4e
Compare
Choose a tag to compare

🔥 New Features & Enhancements

  • Fixed64.ToFloat(long f1) and ToDecimal(long f1) Conversion Methods
    • Added utility functions to convert the underlying Fixed64 long value to a float or decimal

🛠 Improvements in GitHub CI/CD Workflow

  • The .NET GitHub Actions workflow has been refactored to improve reliability and support for multi-platform testing (Windows & Linux).
    • Key updates include:
    • Ensuring proper installation of required Mono dependencies for running .NET Framework tests on Linux.
    • Improved error handling and log clarity for build failures.

📥 Update Now:

dotnet add package FixedMathSharp --version 1.1.0

Enjoy smooth and precise fixed-point arithmetic! 🎉

v1.0.4: Enhancements and Documentation

17 Feb 15:54
38024ba
Compare
Choose a tag to compare

FixedMathSharp v1.0.4 🎉

🛠 Enhancements

  • Vector3d Operators:
    • Added comparison operators (>, <, >=, <=) for Vector3d to facilitate component-wise comparisons.
  • Vector3d Helper Methods:
    • Sign(Vector3d value): Returns a vector indicating the sign of each component.
  • Fixed64 Helper Methods:
    • IsInteger Method: Introduced IsInteger in Fixed64 and Fixed64.Extensions to check if a Fixed64 value represents an integer.

🧹 Documentation

  • Summary Tags: Added XML documentation for new methods and operators to enhance code readability and IntelliSense support.

v1.0.3: support .NET 8

08 Feb 22:59
Compare
Choose a tag to compare
task: cleanup csproj mult-framework targetting

v1.0.2: refactor: unity integration (#17)

02 Jan 15:27
e2e4ab5
Compare
Choose a tag to compare

Refactored Unity Integration to reduce management by merging FixedMathSharp.Editor project into core and handling builds via configuration.

v1.0.1

29 Oct 04:58
38442c5
Compare
Choose a tag to compare

What's Changed

  • support: post release cleanup by @mrdav30 in #8
  • feat: add thread-safe deterministic random generator by @mrdav30 in #9
  • features: add thread-safe deterministic random generator (#9) by @mrdav30 in #10
  • support: fix unity package build script by @mrdav30 in #11
  • support: unity package build script by @mrdav30 in #12
  • support: bump to target framework net48

Full Changelog: v1.0.0...v1.0.1

Initial Release

25 Oct 02:24
93eae3e
Compare
Choose a tag to compare

FixedMathSharp v1.0.0 - Initial Release 🎉

This is the first official release of FixedMathSharp, a high-precision, deterministic fixed-point math library for .NET, designed to eliminate floating-point inaccuracies and ensure consistent results across platforms.

What’s Included:

  • Fixed64 Struct: High-precision fixed-point arithmetic.
  • Vector2d and Vector3d: Fixed-point vector operations in 2D and 3D.
  • FixedQuaternion: Quaternion-based rotations for smooth transformations.
  • Matrix Operations: Transformations using Fixed4x4 and Fixed3x3.
  • Bounding Shapes: BoundingBox, BoundingSphere, and BoundingArea with intersection and containment logic.
  • Math Utilities: Trigonometry and common math functions through FixedMath and FixedTrigonometry.
  • Unity Integration: Extensions to interoperate with Unity’s native types via FixedMathSharp.Editor.

Downloads:

  1. [FixedMathSharp-v1.0.0-net472-release.7z]
    Contains the core DLLs for FixedMathSharp, along with XML documentation for IntelliSense support.

  2. [FixedMathSharp.Editor-v1.0.0-net472-release.7z]
    Contains the editor extensions DLLs for seamless integration with Unity, including property drawers and type conversions.


Installation:

Install via NuGet:

dotnet add package FixedMathSharp

You can also reference the DLLs directly by downloading the appropriate release from above.


Features:

  • Deterministic and Consistent: Ideal for physics engines, simulations, and multiplayer games.
  • Cross-Platform Compatibility: Works seamlessly with .NET Framework (4.7.1+) and Unity.
  • Performance-Optimized: Inline methods and fixed-point math ensure high precision with minimal overhead.

Getting Started:

Explore the example code and usage instructions in the README to get started!