Releases: RogerKenichi/FixedPointLib
Releases · RogerKenichi/FixedPointLib
FixedPointLib v1.0.0
What's Changed
First release of FixedPointLib
Features
Fixed16.16 (32 bits) fixed-point representation (int-based)- Fast and deterministic basic arithmetic operations:
+,-,*,/ - Implicit conversions:
- From
int,float,decimalandstringtoFixed - From
Fixedtofloatandstring
- From
- Automatic overflow checking on arithmetic operations
- Useful Fixed struct type constants:
ZERO,ONEandMINUS_ONE - Math class for mathematical operations
- Includes methods
Pow,Sqrt,Abs,Min,Max,Clamp,Clamp01,LerpandLerpUnclamped - Includes constants for
π,2π,1/2 π,1/π,euler,ln2andln10
- Includes methods
- Fully compatible with
.NETandUnity 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