View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.1
- Last updated
- First released
- Unity version
- 2022.3.22 or later
- Package size
- 33 KB
- Files
- 11
- Favorites
- 6
- Views in the past week
- 11
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Double Precision Maths Library
- Price drop
Push your simulations to new extremes with new maths/physics classes featuring double precision floating-point numbers.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 1
Double Precision Maths Library screenshot 1
About this asset
Vector3 and friends, but backed by doubles instead of floats.
This free library gives you new data types in Unity. They provide the same functionality as the Unity maths and physics libraries, but they are built using double precision floating-point numbers.
The classes are designed to be instantly familiar to Unity users. There are very few caveats or missing methods. The included classes and methods are fully listed with comprehensive documentation here.
Consider of course that doubling the precision will affect memory usage and performance. If there's something you think is missing, feel free to get in touch.
Robbo
From the publisher's Asset Store listing.
Technical details
Double precision implementation of the following Unity classes:
- Mathf
- Vector2
- Vector3
- Vector4
- Quaternion
- Matrix4x4
Note that sometimes an exact match to the Unity equivalent wasn't possible. Furthermore, not every single method from these classes has been implemented. In general, this is only for methods whose double precision equivalent likely offers little practical benefit.
The complete details of any differences between the above classes and their Unity equivalents, including which methods are/aren't implemented, can be found here in the documentation:
https://robertjclose.github.io/DPML-documentation/
If you are looking for a double-precision version of a particular method, please check the documentation to ensure that it is supported by this package.
If a method is not supported, but you have found a good reason why it should be, please get in touch and I will do my best to add it!
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.22f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.