Basic classes such as vectors, planes, arrays, lists, and so on can be found in this namespace. More...
Classes | |
class | aabbox3d |
Axis aligned bounding box in 3d dimensional space. More... | |
class | array |
Self reallocating template array (like stl vector) with additional features. More... | |
class | CMatrix4 |
4x4 matrix. Mostly used as transformation matrix for 3d calculations. More... | |
class | dimension2d |
Specifies a 2 dimensional size. More... | |
union | FloatIntUnion32 |
union | inttofloat |
class | irrAllocator |
Very simple allocator implementation, containers using it can be used across dll boundaries. More... | |
class | irrAllocatorFast |
Fast allocator, only to be used in containers inside the same memory heap. More... | |
class | line2d |
2D line between two points with intersection methods. More... | |
class | line3d |
3D line between two points with intersection methods. More... | |
class | list |
Doubly linked list template. More... | |
class | map |
map template for associative arrays using a red-black tree More... | |
class | plane3d |
Template plane class with some intersection testing methods. More... | |
class | quaternion |
Quaternion class for representing rotations. More... | |
class | rect |
Rectangle template. More... | |
class | string |
class | triangle3d |
3d triangle template class for doing collision detection and other things. More... | |
class | vector2d |
2d vector template class with lots of operators and methods. More... | |
class | vector3d |
3d vector template class with lots of operators and methods. More... | |
Typedefs | |
typedef aabbox3d< f32 > | aabbox3df |
Typedef for a f32 3d bounding box. More... | |
typedef aabbox3d< s32 > | aabbox3di |
Typedef for an integer 3d bounding box. More... | |
typedef dimension2d< f32 > | dimension2df |
Typedef for an f32 dimension. More... | |
typedef dimension2d< s32 > | dimension2di |
Typedef for an integer dimension. More... | |
typedef dimension2d< u32 > | dimension2du |
Typedef for an unsigned integer dimension. More... | |
typedef line2d< f32 > | line2df |
Typedef for an f32 line. More... | |
typedef line2d< s32 > | line2di |
Typedef for an integer line. More... | |
typedef line3d< f32 > | line3df |
Typedef for an f32 line. More... | |
typedef line3d< s32 > | line3di |
Typedef for an integer line. More... | |
typedef CMatrix4< f32 > | matrix4 |
Typedef for f32 matrix. More... | |
typedef plane3d< f32 > | plane3df |
Typedef for a f32 3d plane. More... | |
typedef plane3d< s32 > | plane3di |
Typedef for an integer 3d plane. More... | |
typedef vector2d< f32 > | position2df |
typedef vector2d< s32 > | position2di |
typedef rect< f32 > | rectf |
Rectangle with float values. More... | |
typedef rect< s32 > | recti |
Rectangle with int values. More... | |
typedef string< c8 > | stringc |
Typedef for character strings. More... | |
typedef string< wchar_t > | stringw |
Typedef for wide character strings. More... | |
typedef triangle3d< f32 > | triangle3df |
Typedef for a f32 3d triangle. More... | |
typedef triangle3d< s32 > | triangle3di |
Typedef for an integer 3d triangle. More... | |
typedef vector2d< f32 > | vector2df |
Typedef for f32 2d vector. More... | |
typedef vector2d< s32 > | vector2di |
Typedef for integer 2d vector. More... | |
typedef vector3d< f32 > | vector3df |
Typedef for a f32 3d vector. More... | |
typedef vector3d< s32 > | vector3di |
Typedef for an integer 3d vector. More... | |
Enumerations | |
enum | eAllocStrategy { ALLOC_STRATEGY_SAFE = 0, ALLOC_STRATEGY_DOUBLE = 1, ALLOC_STRATEGY_SQRT = 2 } |
defines an allocation strategy More... | |
enum | EIntersectionRelation3D { ISREL3D_FRONT = 0, ISREL3D_BACK, ISREL3D_PLANAR, ISREL3D_SPANNING, ISREL3D_CLIPPED } |
Enumeration for intersection relations of 3d objects. More... | |
enum | eLocaleID { IRR_LOCALE_ANSI = 0, IRR_LOCALE_GERMAN = 1 } |
Very simple string class with some useful features. More... | |
Functions | |
template<class T > | |
T | abs_ (const T &a) |
returns abs of two values. Own implementation to get rid of STL (VS6 problems) More... | |
REALINLINE s32 | ceil32 (f32 x) |
template<class T > | |
const T | clamp (const T &value, const T &low, const T &high) |
clamps a value between low and high More... | |
REALINLINE void | clearFPUException () |
u32 | ctoul16 (char in) |
Convert a hex-encoded character to an unsigned integer. More... | |
io::path & | cutFilenameExtension (io::path &dest, const io::path &source) |
cut the filename extension from a source file path and store it in a dest file path More... | |
f32 | degToRad (f32 degrees) |
Utility function to convert a degrees value to radians. More... | |
f64 | degToRad (f64 degrees) |
Utility function to convert a degrees value to radians. More... | |
io::path & | deletePathFromFilename (io::path &filename) |
delete path from filename More... | |
io::path & | deletePathFromPath (io::path &filename, s32 pathCount) |
trim paths More... | |
bool | equals (const f64 a, const f64 b, const f64 tolerance=ROUNDING_ERROR_f64) |
returns if a equals b, taking possible rounding errors into account More... | |
bool | equals (const f32 a, const f32 b, const f32 tolerance=ROUNDING_ERROR_f32) |
returns if a equals b, taking possible rounding errors into account More... | |
bool | equals (const s32 a, const s32 b, const s32 tolerance=ROUNDING_ERROR_S32) |
returns if a equals b, taking an explicit rounding tolerance into account More... | |
bool | equals (const u32 a, const u32 b, const s32 tolerance=ROUNDING_ERROR_S32) |
returns if a equals b, taking an explicit rounding tolerance into account More... | |
bool | equals (const s64 a, const s64 b, const s64 tolerance=ROUNDING_ERROR_S64) |
returns if a equals b, taking an explicit rounding tolerance into account More... | |
bool | equalsByUlp (f32 a, f32 b, int maxUlpDiff) |
We compare the difference in ULP's (spacing between floating-point numbers, aka ULP=1 means there exists no float between). More... | |
f32 | f32_max3 (const f32 a, const f32 b, const f32 c) |
f32 | f32_min3 (const f32 a, const f32 b, const f32 c) |
float | fast_atof (const char *floatAsString, const char **out=0) |
Convert a string to a floating point number. More... | |
const char * | fast_atof_move (const char *in, f32 &result) |
Provides a fast function for converting a string into a float. More... | |
REALINLINE s32 | floor32 (f32 x) |
f32 | FR (u32 x) |
Floating-point representation of an integer value. More... | |
f32 | FR (s32 x) |
f32 | fract (f32 x) |
io::path & | getFileNameExtension (io::path &dest, const io::path &source) |
get the filename extension from a file path More... | |
bool | hasFileExtension (const io::path &filename, const io::path &ext0, const io::path &ext1="", const io::path &ext2="") |
search if a filename has a proper extension More... | |
template<class T > | |
void | heapsink (T *array, s32 element, s32 max) |
Sinks an element into the heap. More... | |
template<class T > | |
void | heapsort (T *array_, s32 size) |
Sorts an array with size 'size' using heapsort. More... | |
REALINLINE u32 | if_c_a_else_0 (const s32 condition, const u32 a) |
conditional set based on mask and arithmetic shift More... | |
REALINLINE u32 | if_c_a_else_b (const s32 condition, const u32 a, const u32 b) |
conditional set based on mask and arithmetic shift More... | |
REALINLINE u16 | if_c_a_else_b (const s16 condition, const u16 a, const u16 b) |
conditional set based on mask and arithmetic shift More... | |
u32 | IR (f32 x) |
s32 | isdigit (s32 c) |
some standard function ( to remove dependencies ) More... | |
s32 | isFileExtension (const io::path &filename, const io::path &ext0, const io::path &ext1, const io::path &ext2) |
search if a filename has a proper extension More... | |
s32 | isInSameDirectory (const io::path &path, const io::path &file) |
bool | isnotzero (const f32 a, const f32 tolerance=ROUNDING_ERROR_f32) |
returns if a equals not zero, taking rounding errors into account More... | |
s32 | isspace (s32 c) |
s32 | isupper (s32 c) |
bool | iszero (const f64 a, const f64 tolerance=ROUNDING_ERROR_f64) |
returns if a equals zero, taking rounding errors into account More... | |
bool | iszero (const f32 a, const f32 tolerance=ROUNDING_ERROR_f32) |
returns if a equals zero, taking rounding errors into account More... | |
bool | iszero (const s32 a, const s32 tolerance=0) |
returns if a equals zero, taking rounding errors into account More... | |
bool | iszero (const u32 a, const u32 tolerance=0) |
returns if a equals zero, taking rounding errors into account More... | |
bool | iszero (const s64 a, const s64 tolerance=0) |
returns if a equals zero, taking rounding errors into account More... | |
template<class T > | |
T | lerp (const T &a, const T &b, const f32 t) |
template<class T > | |
const T & | max_ (const T &a, const T &b) |
returns maximum of two values. Own implementation to get rid of the STL (VS6 problems) More... | |
template<class T > | |
const T & | max_ (const T &a, const T &b, const T &c) |
returns maximum of three values. Own implementation to get rid of the STL (VS6 problems) More... | |
template<class T > | |
const T & | min_ (const T &a, const T &b) |
returns minimum of two values. Own implementation to get rid of the STL (VS6 problems) More... | |
template<class T > | |
const T & | min_ (const T &a, const T &b, const T &c) |
returns minimum of three values. Own implementation to get rid of the STL (VS6 problems) More... | |
template<class S , class T > | |
vector2d< T > | operator* (const S scalar, const vector2d< T > &vector) |
template<class S , class T > | |
vector3d< T > | operator* (const S scalar, const vector3d< T > &vector) |
Function multiplying a scalar and a vector component-wise. More... | |
template<class T > | |
CMatrix4< T > | operator* (const T scalar, const CMatrix4< T > &mat) |
f32 | radToDeg (f32 radians) |
Utility function to convert a radian value to degrees. More... | |
f64 | radToDeg (f64 radians) |
Utility function to convert a radian value to degrees. More... | |
REALINLINE f32 | reciprocal (const f32 f) |
REALINLINE f64 | reciprocal (const f64 f) |
REALINLINE f32 | reciprocal_approxim (const f32 f) |
REALINLINE f64 | reciprocal_squareroot (const f64 x) |
REALINLINE f32 | reciprocal_squareroot (const f32 f) |
REALINLINE s32 | reciprocal_squareroot (const s32 x) |
REALINLINE s32 | round32 (f32 x) |
f32 | round_ (f32 x) |
s32 | s32_clamp (s32 value, s32 low, s32 high) |
s32 | s32_max (s32 a, s32 b) |
s32 | s32_min (s32 a, s32 b) |
REALINLINE void | setbit_cond (u32 &state, s32 condition, u32 mask) |
REALINLINE f32 | squareroot (const f32 f) |
REALINLINE f64 | squareroot (const f64 f) |
REALINLINE s32 | squareroot (const s32 f) |
REALINLINE s64 | squareroot (const s64 f) |
f32 | strtof10 (const char *in, const char **out=0) |
Converts a sequence of digits into a whole positive floating point value. More... | |
s32 | strtol10 (const char *in, const char **out=0) |
Convert a simple string of base 10 digits into a signed 32 bit integer. More... | |
u32 | strtoul10 (const char *in, const char **out=0) |
Convert a simple string of base 10 digits into an unsigned 32 bit integer. More... | |
u32 | strtoul16 (const char *in, const char **out=0) |
Convert a simple string of base 16 digits into an unsigned 32 bit integer. More... | |
u32 | strtoul8 (const char *in, const char **out=0) |
Convert a simple string of base 8 digits into an unsigned 32 bit integer. More... | |
u32 | strtoul_prefix (const char *in, const char **out=0) |
Convert a C-style prefixed string (hex, oct, integer) into an unsigned 32 bit integer. More... | |
template<class T1 , class T2 > | |
void | swap (T1 &a, T2 &b) |
swaps the content of the passed parameters More... | |
Variables | |
const f32 | DEGTORAD = PI / 180.0f |
32bit Constant for converting from degrees to radians More... | |
const f64 | DEGTORAD64 = PI64 / 180.0 |
64bit constant for converting from degrees to radians (formally known as GRAD_PI2) More... | |
const float | fast_atof_table [17] |
const f32 | HALF_PI = PI/2.0f |
Constant for half of PI. More... | |
IRRLICHT_API const matrix4 | IdentityMatrix |
global const identity matrix More... | |
IRRLICHT_API irr::core::stringc | LOCALE_DECIMAL_POINTS |
Selection of characters which count as decimal point in fast_atof. More... | |
const f32 | PI = 3.14159265359f |
Constant for PI. More... | |
const f64 | PI64 = 3.1415926535897932384626433832795028841971693993751 |
Constant for 64bit PI. More... | |
const f32 | RADTODEG = 180.0f / PI |
32bit constant for converting from radians to degrees (formally known as GRAD_PI) More... | |
const f64 | RADTODEG64 = 180.0 / PI64 |
64bit constant for converting from radians to degrees More... | |
const f32 | RECIPROCAL_PI = 1.0f/PI |
Constant for reciprocal of PI. More... | |
const f64 | RECIPROCAL_PI64 = 1.0/PI64 |
Constant for 64bit reciprocal of PI. More... | |
const f32 | ROUNDING_ERROR_f32 = 0.000001f |
const f64 | ROUNDING_ERROR_f64 = 0.00000001 |
const s32 | ROUNDING_ERROR_S32 = 0 |
Rounding error constant often used when comparing f32 values. More... | |
const s64 | ROUNDING_ERROR_S64 = 0 |
Basic classes such as vectors, planes, arrays, lists, and so on can be found in this namespace.
typedef aabbox3d<f32> irr::core::aabbox3df |
Typedef for a f32 3d bounding box.
Definition at line 324 of file aabbox3d.h.
typedef aabbox3d<s32> irr::core::aabbox3di |
Typedef for an integer 3d bounding box.
Definition at line 326 of file aabbox3d.h.
typedef dimension2d<f32> irr::core::dimension2df |
Typedef for an f32 dimension.
Definition at line 210 of file dimension2d.h.
typedef dimension2d<s32> irr::core::dimension2di |
Typedef for an integer dimension.
There are few cases where negative dimensions make sense. Please consider using dimension2du instead.
Definition at line 217 of file dimension2d.h.
typedef dimension2d<u32> irr::core::dimension2du |
Typedef for an unsigned integer dimension.
Definition at line 212 of file dimension2d.h.
typedef line2d<f32> irr::core::line2df |
typedef line2d<s32> irr::core::line2di |
typedef line3d<f32> irr::core::line3df |
typedef line3d<s32> irr::core::line3di |
typedef CMatrix4<f32> irr::core::matrix4 |
typedef plane3d<f32> irr::core::plane3df |
typedef plane3d<s32> irr::core::plane3di |
typedef vector2d<f32> irr::core::position2df |
Definition at line 21 of file position2d.h.
typedef vector2d<s32> irr::core::position2di |
Definition at line 24 of file position2d.h.
typedef rect<f32> irr::core::rectf |
typedef rect<s32> irr::core::recti |
typedef string<c8> irr::core::stringc |
Typedef for character strings.
Definition at line 1358 of file irrString.h.
typedef string<wchar_t> irr::core::stringw |
Typedef for wide character strings.
Definition at line 1361 of file irrString.h.
typedef triangle3d<f32> irr::core::triangle3df |
Typedef for a f32 3d triangle.
Definition at line 270 of file triangle3d.h.
typedef triangle3d<s32> irr::core::triangle3di |
Typedef for an integer 3d triangle.
Definition at line 273 of file triangle3d.h.
typedef vector2d<f32> irr::core::vector2df |
Typedef for f32 2d vector.
Definition at line 323 of file vector2d.h.
typedef vector2d<s32> irr::core::vector2di |
Typedef for integer 2d vector.
Definition at line 326 of file vector2d.h.
typedef vector3d<f32> irr::core::vector3df |
Typedef for a f32 3d vector.
Definition at line 445 of file vector3d.h.
typedef vector3d<s32> irr::core::vector3di |
Typedef for an integer 3d vector.
Definition at line 448 of file vector3d.h.
defines an allocation strategy
Enumerator | |
---|---|
ALLOC_STRATEGY_SAFE | |
ALLOC_STRATEGY_DOUBLE | |
ALLOC_STRATEGY_SQRT |
Definition at line 112 of file irrAllocator.h.
enum irr::core::eLocaleID |
Very simple string class with some useful features.
string<c8> and string<wchar_t> both accept Unicode AND ASCII/Latin-1, so you can assign Unicode to string<c8> and ASCII/Latin-1 to string<wchar_t> (and the other way round) if you want to.
However, note that the conversation between both is not done using any encoding. This means that c8 strings are treated as ASCII/Latin-1, not UTF-8, and are simply expanded to the equivalent wchar_t, while Unicode/wchar_t characters are truncated to 8-bit ASCII/Latin-1 characters, discarding all other information in the wchar_t.
Enumerator | |
---|---|
IRR_LOCALE_ANSI | |
IRR_LOCALE_GERMAN |
Definition at line 32 of file irrString.h.
|
inline |
returns abs of two values. Own implementation to get rid of STL (VS6 problems)
Definition at line 151 of file irrMath.h.
Referenced by equalsByUlp(), and iszero().
REALINLINE s32 irr::core::ceil32 | ( | f32 | x | ) |
|
inline |
clamps a value between low and high
Definition at line 166 of file irrMath.h.
References max_(), and min_().
Referenced by irr::scene::quake3::dumpShader(), irr::core::string< fschar_t >::findLast(), irr::core::vector2d< f32 >::getAngle(), irr::video::S3DVertex::getInterpolated(), irr::video::S3DVertex2TCoords::getInterpolated(), irr::video::S3DVertexTangents::getInterpolated(), irr::video::SColor::getInterpolated(), irr::video::SColorf::getInterpolated(), irr::video::SColor::getInterpolated_quadratic(), irr::video::SColorf::getInterpolated_quadratic(), irr::core::CMatrix4< T >::getRotationDegrees(), irr::scene::SVertexColorBrightnessManipulator::operator()(), irr::scene::SVertexColorContrastManipulator::operator()(), irr::scene::SVertexColorContrastBrightnessManipulator::operator()(), irr::scene::SVertexColorGammaManipulator::operator()(), irr::scene::SVertexColorScaleManipulator::operator()(), and irr::core::quaternion::toEuler().
REALINLINE void irr::core::clearFPUException | ( | ) |
|
inline |
Convert a hex-encoded character to an unsigned integer.
[in] | in | The digit to convert. Only digits 0 to 9 and chars A-F,a-f will be considered. |
Definition at line 125 of file fast_atof.h.
cut the filename extension from a source file path and store it in a dest file path
Definition at line 49 of file coreutil.h.
References irr::core::string< T, TAlloc >::findLast(), irr::core::string< T, TAlloc >::size(), and irr::core::string< T, TAlloc >::subString().
Referenced by irr::scene::quake3::getTextures().
delete path from filename
Definition at line 68 of file coreutil.h.
References irr::core::string< T, TAlloc >::c_str(), and irr::core::string< T, TAlloc >::size().
trim paths
Definition at line 87 of file coreutil.h.
References irr::core::string< T, TAlloc >::size(), and irr::core::string< T, TAlloc >::validate().
|
inline |
returns if a equals b, taking possible rounding errors into account
Definition at line 185 of file irrMath.h.
Referenced by irr::core::quaternion::equals(), irr::core::vector2d< f32 >::equals(), irr::core::vector3d< f32 >::equals(), equals(), irr::core::CMatrix4< T >::equals(), equalsByUlp(), irr::video::SColorHSL::fromRGB(), irr::core::line2d< T >::intersectWith(), irr::core::CMatrix4< T >::isIdentity(), irr::core::vector3d< f32 >::operator<(), irr::core::vector2d< f32 >::operator<(), irr::core::vector3d< f32 >::operator<=(), irr::core::vector2d< f32 >::operator<=(), irr::core::dimension2d< u32 >::operator==(), irr::core::plane3d< f32 >::operator==(), irr::core::vector3d< f32 >::operator>(), irr::core::vector2d< f32 >::operator>(), irr::core::vector3d< f32 >::operator>=(), irr::core::vector2d< f32 >::operator>=(), irr::core::CMatrix4< T >::setScale(), and irr::core::quaternion::toEuler().
|
inline |
|
inline |
|
inline |
|
inline |
We compare the difference in ULP's (spacing between floating-point numbers, aka ULP=1 means there exists no float between).
Definition at line 208 of file irrMath.h.
References abs_(), equals(), irr::core::FloatIntUnion32::i, and irr::core::FloatIntUnion32::sign().
|
inline |
Convert a string to a floating point number.
floatAsString | The string to convert. |
out | Optional pointer to the first character in the string that wasn't used to create the float value. |
Definition at line 350 of file fast_atof.h.
References fast_atof_move().
|
inline |
Provides a fast function for converting a string into a float.
This is not guaranteed to be as accurate as atof(), but is approximately 6 to 8 times as fast.
[in] | in | The string to convert. |
[out] | result | The resultant float will be written here. |
Definition at line 309 of file fast_atof.h.
References strtof10(), and strtol10().
Referenced by fast_atof(), and irr::scene::quake3::getAsFloat().
REALINLINE s32 irr::core::floor32 | ( | f32 | x | ) |
Definition at line 613 of file irrMath.h.
Referenced by irr::video::SColor::getInterpolated_quadratic(), and irr::gui::IGUIElement::setRelativePositionProportional().
Floating-point representation of an integer value.
Definition at line 363 of file irrMath.h.
References irr::core::inttofloat::f, and irr::core::inttofloat::u.
Referenced by fract(), and irr::video::pack_textureBlendFunc().
Definition at line 364 of file irrMath.h.
References irr::core::inttofloat::f, and irr::core::inttofloat::s.
Definition at line 718 of file irrMath.h.
Referenced by irr::scene::quake3::SModifierFunction::evaluate().
get the filename extension from a file path
Definition at line 57 of file coreutil.h.
References irr::core::string< T, TAlloc >::findLast(), irr::core::string< T, TAlloc >::size(), and irr::core::string< T, TAlloc >::subString().
|
inline |
search if a filename has a proper extension
Definition at line 40 of file coreutil.h.
References isFileExtension().
|
inline |
Sorts an array with size 'size' using heapsort.
Definition at line 41 of file heapsort.h.
References heapsink().
Referenced by irr::core::array< u16 >::sort().
REALINLINE u32 irr::core::if_c_a_else_0 | ( | const s32 | condition, |
const u32 | a | ||
) |
REALINLINE u32 irr::core::if_c_a_else_b | ( | const s32 | condition, |
const u32 | a, | ||
const u32 | b | ||
) |
REALINLINE u16 irr::core::if_c_a_else_b | ( | const s16 | condition, |
const u16 | a, | ||
const u16 | b | ||
) |
code is taken from IceFPU Integer representation of a floating-point value.
Definition at line 353 of file irrMath.h.
References irr::core::inttofloat::f, and irr::core::inttofloat::u.
Referenced by fract(), irr::core::CMatrix4< T >::isIdentity_integer_base(), and irr::video::unpack_textureBlendFunc().
some standard function ( to remove dependencies )
Definition at line 180 of file coreutil.h.
|
inline |
search if a filename has a proper extension
Definition at line 23 of file coreutil.h.
References irr::core::string< T, TAlloc >::equals_substring_ignore_case(), and irr::core::string< T, TAlloc >::findLast().
Referenced by hasFileExtension().
looks if file is in the same directory of path. returns offset of directory. 0 means in same directory. 1 means file is direct child of path
Definition at line 115 of file coreutil.h.
References irr::core::string< T, TAlloc >::equalsn(), irr::core::string< T, TAlloc >::findNext(), irr::core::string< T, TAlloc >::replace(), irr::core::string< T, TAlloc >::size(), and irr::core::string< T, TAlloc >::subString().
|
inline |
Definition at line 181 of file coreutil.h.
Definition at line 182 of file coreutil.h.
|
inline |
returns if a equals zero, taking rounding errors into account
Definition at line 270 of file irrMath.h.
Referenced by irr::core::triangle3d< T >::getIntersectionOfPlaneWithLine(), irr::core::CMatrix4< T >::getInverse(), irr::core::CMatrix4< T >::getRotationDegrees(), irr::core::CMatrix4< T >::getScale(), irr::core::CMatrix4< T >::isOrthogonal(), iszero(), irr::core::quaternion::toAngleAxis(), and irr::video::SColorHSL::toRGB().
|
inline |
|
inline |
|
inline |
returns maximum of two values. Own implementation to get rid of the STL (VS6 problems)
Definition at line 137 of file irrMath.h.
Referenced by clamp(), irr::video::SColorHSL::fromRGB(), irr::video::SColor::getLightness(), and max_().
|
inline |
|
inline |
returns minimum of two values. Own implementation to get rid of the STL (VS6 problems)
Definition at line 123 of file irrMath.h.
Referenced by clamp(), irr::video::SColorHSL::fromRGB(), irr::video::SColor::getLightness(), min_(), and irr::video::SColor::operator+().
|
inline |
vector2d<T> irr::core::operator* | ( | const S | scalar, |
const vector2d< T > & | vector | ||
) |
Definition at line 329 of file vector2d.h.
vector3d<T> irr::core::operator* | ( | const S | scalar, |
const vector3d< T > & | vector | ||
) |
Function multiplying a scalar and a vector component-wise.
Definition at line 452 of file vector3d.h.
|
inline |
Definition at line 2228 of file matrix4.h.
Referenced by irr::core::CMatrix4< T >::pointer().
REALINLINE f32 irr::core::reciprocal | ( | const f32 | f | ) |
Definition at line 535 of file irrMath.h.
References irr::core::FloatIntUnion32::f.
Referenced by irr::core::CMatrix4< T >::buildProjectionMatrixPerspectiveFovInfinityLH(), irr::core::CMatrix4< T >::buildProjectionMatrixPerspectiveFovLH(), irr::core::CMatrix4< T >::buildProjectionMatrixPerspectiveFovRH(), irr::core::CMatrix4< T >::getInverse(), irr::core::CMatrix4< T >::getRotationDegrees(), irr::core::quaternion::slerp(), and irr::core::quaternion::toAngleAxis().
REALINLINE f64 irr::core::reciprocal | ( | const f64 | f | ) |
Definition at line 568 of file irrMath.h.
References irr::core::FloatIntUnion32::f.
REALINLINE f32 irr::core::reciprocal_approxim | ( | const f32 | f | ) |
Definition at line 575 of file irrMath.h.
References irr::core::FloatIntUnion32::f.
REALINLINE f64 irr::core::reciprocal_squareroot | ( | const f64 | x | ) |
REALINLINE f32 irr::core::reciprocal_squareroot | ( | const f32 | f | ) |
REALINLINE s32 irr::core::reciprocal_squareroot | ( | const s32 | x | ) |
Definition at line 529 of file irrMath.h.
References reciprocal_squareroot().
REALINLINE s32 irr::core::round32 | ( | f32 | x | ) |
Definition at line 680 of file irrMath.h.
References round_().
Referenced by irr::video::SColor::getInterpolated(), irr::core::vector3d< f32 >::getSphericalCoordinateAngles(), irr::scene::SVertexColorContrastManipulator::operator()(), irr::scene::SVertexColorContrastBrightnessManipulator::operator()(), irr::scene::SVertexColorGammaManipulator::operator()(), irr::scene::SVertexColorScaleManipulator::operator()(), irr::scene::SVertexColorDesaturateToLightnessManipulator::operator()(), irr::scene::SVertexColorDesaturateToLuminanceManipulator::operator()(), irr::gui::IGUIElement::recalculateAbsolutePosition(), and irr::video::SColorf::toSColor().
Definition at line 449 of file irrMath.h.
References irr::core::FloatIntUnion32::f.
Referenced by round32().
Definition at line 313 of file irrMath.h.
Referenced by s32_clamp().
Definition at line 307 of file irrMath.h.
Referenced by s32_clamp().
REALINLINE void irr::core::setbit_cond | ( | u32 & | state, |
s32 | condition, | ||
u32 | mask | ||
) |
REALINLINE f32 irr::core::squareroot | ( | const f32 | f | ) |
Definition at line 471 of file irrMath.h.
Referenced by irr::core::vector2d< f32 >::getAngle(), irr::core::vector2d< f32 >::getAngleWith(), irr::core::vector3d< f32 >::getHorizontalAngle(), irr::core::line3d< T >::getIntersectionWithSphere(), irr::core::vector2d< f32 >::getLength(), irr::core::vector3d< f32 >::getLength(), and squareroot().
REALINLINE f64 irr::core::squareroot | ( | const f64 | f | ) |
REALINLINE s32 irr::core::squareroot | ( | const s32 | f | ) |
Definition at line 483 of file irrMath.h.
References squareroot().
REALINLINE s64 irr::core::squareroot | ( | const s64 | f | ) |
Definition at line 490 of file irrMath.h.
References squareroot().
|
inline |
Converts a sequence of digits into a whole positive floating point value.
Only digits 0 to 9 are parsed. Parsing stops at any other character, including sign characters or a decimal point.
in | the sequence of digits to convert. |
out | (optional) will be set to point at the first non-converted character. |
Definition at line 258 of file fast_atof.h.
References FLT_MAX.
Referenced by fast_atof_move().
|
inline |
Convert a simple string of base 10 digits into a signed 32 bit integer.
[in] | in | The string of digits to convert. Only a leading - or + followed by digits 0 to 9 will be considered. Parsing stops at the first non-digit. |
[out] | out | (optional) If provided, it will be set to point at the first character not used in the calculation. |
Definition at line 89 of file fast_atof.h.
References strtoul10().
Referenced by fast_atof_move().
|
inline |
Convert a simple string of base 10 digits into an unsigned 32 bit integer.
[in] | in | The string of digits to convert. No leading chars are allowed, only digits 0 to 9. Parsing stops at the first non-digit. |
[out] | out | (optional) If provided, it will be set to point at the first character not used in the calculation. |
Definition at line 49 of file fast_atof.h.
Referenced by strtol10(), and strtoul_prefix().
|
inline |
Convert a simple string of base 16 digits into an unsigned 32 bit integer.
[in] | in | The string of digits to convert. No leading chars are allowed, only digits 0 to 9 and chars A-F,a-f are allowed. Parsing stops at the first illegal char. |
[out] | out | (optional) If provided, it will be set to point at the first character not used in the calculation. |
Definition at line 146 of file fast_atof.h.
Referenced by strtoul_prefix().
|
inline |
Convert a simple string of base 8 digits into an unsigned 32 bit integer.
[in] | in | The string of digits to convert. No leading chars are allowed, only digits 0 to 7 are allowed. Parsing stops at the first illegal char. |
[out] | out | (optional) If provided, it will be set to point at the first character not used in the calculation. |
Definition at line 193 of file fast_atof.h.
Referenced by strtoul_prefix().
|
inline |
Convert a C-style prefixed string (hex, oct, integer) into an unsigned 32 bit integer.
[in] | in | The string of digits to convert. If string starts with 0x the hex parser is used, if only leading 0 is used, oct parser is used. In all other cases, the usual unsigned parser is used. |
[out] | out | (optional) If provided, it will be set to point at the first character not used in the calculation. |
Definition at line 236 of file fast_atof.h.
References strtoul10(), strtoul16(), and strtoul8().
|
inline |
swaps the content of the passed parameters
Definition at line 177 of file irrMath.h.
Referenced by irr::core::list< irr::scene::ISceneNodeAnimator *>::swap(), irr::core::array< u16 >::swap(), and irr::core::map< KeyType, ValueType >::swap().
32bit Constant for converting from degrees to radians
Definition at line 74 of file irrMath.h.
Referenced by irr::core::CMatrix4< T >::setInverseRotationDegrees(), and irr::core::CMatrix4< T >::setRotationDegrees().
64bit constant for converting from degrees to radians (formally known as GRAD_PI2)
Definition at line 80 of file irrMath.h.
Referenced by irr::core::vector2d< f32 >::rotateBy(), irr::core::vector3d< f32 >::rotateXYBy(), irr::core::vector3d< f32 >::rotateXZBy(), irr::core::vector3d< f32 >::rotateYZBy(), and irr::core::vector3d< f32 >::rotationToDirection().
const float irr::core::fast_atof_table[17] |
Definition at line 21 of file fast_atof.h.
IRRLICHT_API const matrix4 irr::core::IdentityMatrix |
global const identity matrix
Referenced by irr::video::SMaterialLayer::getTextureMatrix(), and irr::video::SMaterial::getTextureMatrix().
IRRLICHT_API irr::core::stringc irr::core::LOCALE_DECIMAL_POINTS |
Selection of characters which count as decimal point in fast_atof.
const f32 irr::core::PI = 3.14159265359f |
Constant for PI.
Definition at line 56 of file irrMath.h.
Referenced by irr::scene::quake3::SModifierFunction::evaluate(), and irr::scene::quake3::getMD3Normal().
const f64 irr::core::PI64 = 3.1415926535897932384626433832795028841971693993751 |
Constant for 64bit PI.
Definition at line 68 of file irrMath.h.
Referenced by irr::core::quaternion::toEuler().
const f32 irr::core::RADTODEG = 180.0f / PI |
64bit constant for converting from radians to degrees
Definition at line 83 of file irrMath.h.
Referenced by irr::core::vector2d< f32 >::getAngle(), irr::core::vector2d< f32 >::getAngleTrig(), irr::core::vector2d< f32 >::getAngleWith(), irr::core::vector3d< f32 >::getHorizontalAngle(), irr::core::CMatrix4< T >::getRotationDegrees(), and irr::core::vector3d< f32 >::getSphericalCoordinateAngles().
const f32 irr::core::RECIPROCAL_PI = 1.0f/PI |
const f32 irr::core::ROUNDING_ERROR_f32 = 0.000001f |
const f64 irr::core::ROUNDING_ERROR_f64 = 0.00000001 |
Definition at line 50 of file irrMath.h.
Referenced by irr::core::plane3d< f32 >::getIntersectionWithPlane(), and irr::core::CMatrix4< T >::setScale().
const s32 irr::core::ROUNDING_ERROR_S32 = 0 |