|
template<class T > |
bool | Urho3D::Equals (T lhs, T rhs) |
|
template<class T , class U > |
T | Urho3D::Lerp (T lhs, T rhs, U t) |
|
template<class T > |
T | Urho3D::InverseLerp (T lhs, T rhs, T x) |
|
template<class T , class U > |
T | Urho3D::Min (T lhs, U rhs) |
|
template<class T , class U > |
T | Urho3D::Max (T lhs, U rhs) |
|
template<class T > |
T | Urho3D::Abs (T value) |
|
template<class T > |
T | Urho3D::Sign (T value) |
|
template<class T > |
T | Urho3D::ToRadians (const T degrees) |
| Convert degrees to radians.
|
|
template<class T > |
T | Urho3D::ToDegrees (const T radians) |
| Convert radians to degrees.
|
|
unsigned | Urho3D::FloatToRawIntBits (float value) |
| Return a representation of the specified floating-point value as a single format bit layout.
|
|
template<class T > |
bool | Urho3D::IsNaN (T value) |
|
template<class T > |
bool | Urho3D::IsInf (T value) |
| Check whether a floating point value is positive or negative infinity.
|
|
template<class T > |
T | Urho3D::Clamp (T value, T min, T max) |
|
template<class T > |
T | Urho3D::SmoothStep (T lhs, T rhs, T t) |
|
template<class T > |
T | Urho3D::Sin (T angle) |
|
template<class T > |
T | Urho3D::Cos (T angle) |
|
template<class T > |
T | Urho3D::Tan (T angle) |
|
template<class T > |
T | Urho3D::Asin (T x) |
|
template<class T > |
T | Urho3D::Acos (T x) |
|
template<class T > |
T | Urho3D::Atan (T x) |
|
template<class T > |
T | Urho3D::Atan2 (T y, T x) |
|
template<class T > |
T | Urho3D::Pow (T x, T y) |
|
template<class T > |
T | Urho3D::Ln (T x) |
|
template<class T > |
T | Urho3D::Sqrt (T x) |
|
template<class T , typename std::enable_if< std::is_floating_point< T >::value >::type * = nullptr> |
T | Urho3D::Mod (T x, T y) |
| Return remainder of X/Y for float values. More...
|
|
template<class T > |
T | Urho3D::AbsMod (T x, T y) |
| Return always positive remainder of X/Y.
|
|
template<class T > |
T | Urho3D::Fract (T value) |
|
template<class T > |
T | Urho3D::Floor (T x) |
|
template<class T > |
int | Urho3D::FloorToInt (T x) |
|
template<class T > |
T | Urho3D::Round (T x) |
|
template<class Iterator > |
auto | Urho3D::Average (Iterator begin, Iterator end) -> typename std::decay< decltype(*begin)>::type |
| Compute average value of the range.
|
|
template<class T > |
int | Urho3D::RoundToInt (T x) |
|
template<class T > |
T | Urho3D::RoundToNearestMultiple (T x, T multiple) |
| Round value to nearest multiple.
|
|
template<class T > |
T | Urho3D::Ceil (T x) |
|
template<class T > |
int | Urho3D::CeilToInt (T x) |
|
bool | Urho3D::IsPowerOfTwo (unsigned value) |
| Check whether an unsigned integer is a power of two.
|
|
unsigned | Urho3D::NextPowerOfTwo (unsigned value) |
| Round up to next power of two.
|
|
unsigned | Urho3D::ClosestPowerOfTwo (unsigned value) |
| Round up or down to the closest power of two.
|
|
unsigned | Urho3D::LogBaseTwo (unsigned value) |
| Return log base two or the MSB position of the given value.
|
|
unsigned | Urho3D::CountSetBits (unsigned value) |
| Count the number of set bits in a mask.
|
|
constexpr unsigned | Urho3D::SDBMHash (unsigned hash, unsigned char c) |
| Update a hash with the given 8-bit value using the SDBM algorithm.
|
|
float | Urho3D::Random () |
| Return a random float between 0.0 (inclusive) and 1.0 (exclusive).
|
|
float | Urho3D::Random (float range) |
| Return a random float between 0.0 and range, inclusive from both ends.
|
|
float | Urho3D::Random (float min, float max) |
| Return a random float between min and max, inclusive from both ends.
|
|
int | Urho3D::Random (int range) |
|
int | Urho3D::Random (int min, int max) |
|
float | Urho3D::RandomNormal (float meanValue, float variance) |
| Return a random normal distributed number with the given mean value and variance.
|
|
unsigned short | Urho3D::FloatToHalf (float value) |
| Convert float to half float. From https://gist.github.com/martinkallman/5049614.
|
|
float | Urho3D::HalfToFloat (unsigned short value) |
| Convert half float to float. From https://gist.github.com/martinkallman/5049614.
|
|
void | Urho3D::SinCos (float angle, float &sin, float &cos) |
| Calculate both sine and cosine, with angle in degrees.
|
|
|
static const float | Urho3D::M_PI = 3.14159265358979323846264338327950288f |
|
static const float | Urho3D::M_HALF_PI = M_PI * 0.5f |
|
static const int | Urho3D::M_MIN_INT = 0x80000000 |
|
static const int | Urho3D::M_MAX_INT = 0x7fffffff |
|
static const unsigned | Urho3D::M_MIN_UNSIGNED = 0x00000000 |
|
static const unsigned | Urho3D::M_MAX_UNSIGNED = 0xffffffff |
|
static const float | Urho3D::M_EPSILON = 0.000001f |
|
static const float | Urho3D::M_LARGE_EPSILON = 0.00005f |
|
static const float | Urho3D::M_MIN_NEARCLIP = 0.01f |
|
static const float | Urho3D::M_MAX_FOV = 160.0f |
|
static const float | Urho3D::M_LARGE_VALUE = 100000000.0f |
|
static const float | Urho3D::M_INFINITY = (float)HUGE_VAL |
|
static const float | Urho3D::M_DEGTORAD = M_PI / 180.0f |
|
static const float | Urho3D::M_DEGTORAD_2 = M_PI / 360.0f |
|
static const float | Urho3D::M_RADTODEG = 1.0f / M_DEGTORAD |
|