User Tools

Site Tools


math_library

This is an old revision of the document!


Math functions present inside Impulse Physics

Impulse Physics features its own, small math library in order to stay lean on dependencies.

Currently, it has support for the following:

Float comparison

Floating-point numbers are almost always stored inaccurately in computers' memory. This is because of the |IEEE-754 standard that is used to store the number.

It also means that for example, 0.2 + 0.1 is not equal to 0.3; rather it is equal to 0.30000000000000004. Since computers are exact in comparison by default, you can see how you can run into issues with this.

math_library.1651274185.txt.gz · Last modified: 2022/04/29 23:16 by max