sculpto
|
#include <math.h>
Go to the source code of this file.
Namespaces | |
namespace | scl |
namespace | scl::math |
Typedefs | |
using | scl::i8 = int8_t |
using | scl::u8 = uint8_t |
using | scl::i16 = int16_t |
using | scl::u16 = uint16_t |
using | scl::i32 = int32_t |
using | scl::u32 = uint32_t |
using | scl::i64 = int64_t |
using | scl::u64 = uint64_t |
Functions | |
template<typename T > | |
T | scl::math::Min (T Num1, T Num2) |
template<typename T > | |
T | scl::math::Max (T Num1, T Num2) |
template<typename T > | |
T | scl::math::Clamp (T Num, T Min=0, T Max=1) |
template<typename T > | |
T | scl::math::Lerp (T Start, T End, T Current) |
template<typename T > | |
T | scl::math::Rnd0 () |
template<typename T > | |
T | scl::math::Rnd (T Min=0, T Max=1) |
Variables | |
const float | scl::math::E = 2.7182818284590f |
const float | scl::math::LOG2E = 1.4426950408889f |
const float | scl::math::LOG10E = 0.4342944819032f |
const float | scl::math::LN2 = 0.6931471805599f |
const float | scl::math::LN10 = 2.3025850929940f |
const float | scl::math::PI = 3.1415926535897f |
const float | scl::math::PI_2 = 1.5707963267948f |
const float | scl::math::PI_4 = 0.7853981633974f |
const float | scl::math::REV_1_PI = 0.3183098861837f |
const float | scl::math::REV_2_PI = 0.6366197723675f |
const float | scl::math::REV_2_SQRTPI = 1.1283791670955f |
const float | scl::math::SQRT2 = 1.4142135623730f |
const float | scl::math::SQRT1_2 = 0.7071067811865f |