Skip to content

Releases: RogerKenichi/FixedPointLib

FixedPointLib v1.0.0

06 Jun 19:42

Choose a tag to compare

What's Changed

First release of FixedPointLib

Features

  • Fixed 16.16 (32 bits) fixed-point representation (int-based)
  • Fast and deterministic basic arithmetic operations: +, -, *, /
  • Implicit conversions:
    • From int, float, decimal and string to Fixed
    • From Fixed to float and string
  • Automatic overflow checking on arithmetic operations
  • Useful Fixed struct type constants: ZERO, ONE and MINUS_ONE
  • Math class for mathematical operations
    • Includes methods Pow, Sqrt, Abs, Min, Max, Clamp, Clamp01, Lerp and LerpUnclamped
    • Includes constants for π, , 1/2 π, 1/π, euler, ln2 and ln10
  • Fully compatible with .NET and Unity 3D (no external dependencies)

How to use it?

Check the README.md to know how to use this library.

Full Changelog: https://github.com/RogerKenichi/FixedPointLib/commits/v1.0.0