From d371b4152baf2083ec6a5b847f25327301edc9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 27 Jan 2018 22:06:04 -0800 Subject: [PATCH] Updated docs. --- include/bx/math.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/bx/math.h b/include/bx/math.h index a8b98d5..c12a7fa 100644 --- a/include/bx/math.h +++ b/include/bx/math.h @@ -50,24 +50,31 @@ namespace bx }; }; + /// Returns converted the argument _deg to radians. /// float toRad(float _deg); + /// Returns converted the argument _rad to degrees. /// float toDeg(float _rad); + /// Reinterprets the bit pattern of _a as uint32_t. /// uint32_t floatToBits(float _a); + /// Reinterprets the bit pattern of _a as float. /// float bitsToFloat(uint32_t _a); + /// Reinterprets the bit pattern of _a as uint64_t. /// uint64_t doubleToBits(double _a); + /// Reinterprets the bit pattern of _a as double. /// double bitsToDouble(uint64_t _a); + /// Returns sortable floating point value. /// uint32_t floatFlip(uint32_t _value);