xoreos
0.0.5
|
Mathematical helpers. More...
Go to the source code of this file.
Classes | |
struct | Common::Complex |
A complex number. More... | |
Namespaces | |
Common | |
Macros | |
#define | M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */ |
#define | M_PI 3.14159265358979323846 |
#define | FLT_MIN 1E-37 |
#define | FLT_MAX 1E+37 |
#define | INT32_MIN ((int32) 0x80000000) |
#define | INT32_MAX ((int32) 0x7FFFFFFF) |
Functions | |
static int | Common::intLog2 (uint32 v) |
static float | Common::rad2deg (float rad) |
static float | Common::deg2rad (float deg) |
Mathematical helpers.
Definition in file maths.h.
#define FLT_MAX 1E+37 |
Definition at line 47 of file maths.h.
Referenced by Engines::Sonic::AreaBackground::AreaBackground(), Graphics::Aurora::BorderQuad::BorderQuad(), Graphics::CameraManager::CameraManager(), Common::BoundingBox::clear(), Engines::Sonic::Area::getCameraLimits(), Engines::Jade::GUIBackground::GUIBackground(), Engines::KotOR::GUIBackground::GUIBackground(), Graphics::Aurora::GUIQuad::GUIQuad(), Engines::WidgetProgressbar::load(), Engines::NWN::Portrait::Portrait(), Graphics::Aurora::FadeQuad::render(), Graphics::CameraManager::reset(), Graphics::Font::split(), and Graphics::Aurora::Text::Text().
#define FLT_MIN 1E-37 |
Definition at line 43 of file maths.h.
Referenced by Engines::KotOR::Room::evaluateElevation(), Engines::KotOR2::Room::evaluateElevation(), Engines::KotOR2::Area::evaluateElevation(), Engines::KotOR::Area::evaluateElevation(), Graphics::Aurora::Walkmesh::getElevationAt(), Engines::KotOR2::Area::getRoomAt(), Engines::KotOR::Area::getRoomAt(), Engines::KotOR2::Module::handlePCMovement(), Engines::KotOR::Module::handlePCMovement(), and Engines::KotOR::ActionExecutor::moveTo().
#define INT32_MIN ((int32) 0x80000000) |
Definition at line 51 of file maths.h.
Referenced by Aurora::NWScript::NCSFile::o_div().
#define M_PI 3.14159265358979323846 |
Definition at line 39 of file maths.h.
Referenced by Common::DCT::DCT(), Common::deg2rad(), Sound::WMACodec::initLSPToCurve(), Graphics::Aurora::Animation::interpolateOrientation(), Common::MDCT::MDCT(), Common::rad2deg(), and Engines::SatelliteCamera::update().