Classes | |
class | euler_solver |
Euler's method solver. More... | |
struct | info |
class | julian_day |
class | math_object |
class | matrix |
A generic matrix class. More... | |
class | quaternion |
Quaternion class. More... | |
class | runge_kutta_solver |
The venerable Runge-Kutta solver. More... | |
class | solver |
Base class for numerical equation solvers, where the equation is x' = f(t, x). More... | |
class | transform |
A 4x4 matrix used in 3d coordinate system transformations. More... | |
class | vector |
A vector for storing homogenous coordinates. More... | |
Namespaces | |
namespace | matrix_utils |
namespace | units |
Functions | |
template<typename R> | |
R | clamp (const R &val, const R &min, const R &max) |
vector | operator* (const vector &v, gsgl::real_t n) |
Multiplies a vector by a scalar. | |
vector | operator* (gsgl::real_t n, const vector &v) |
Multiplies a vector by a scalar. | |
vector | operator/ (const vector &v, gsgl::real_t n) |
Divides a vector by a scalar. | |
Variables | |
const double | DEG2RAD = M_PI / 180.0 |
const double | PI = M_PI |
const double | PI_OVER_2 = M_PI * 0.5 |
const double | PI_TIMES_2 = M_PI * 2.0 |
const double | RAD2DEG = 180.0 / M_PI |
R gsgl::math::clamp | ( | const R & | val, | |
const R & | min, | |||
const R & | max | |||
) | [inline] |
vector gsgl::math::operator* | ( | const vector & | v, | |
gsgl::real_t | n | |||
) | [inline] |
Multiplies a vector by a scalar.
Definition at line 123 of file vector.hpp.
References vector::get_x(), vector::get_y(), and vector::get_z().
Referenced by iterable::iterator::operator*(), iterable::const_iterator::operator*(), iterable::iterator::operator->(), and iterable::const_iterator::operator->().
vector gsgl::math::operator* | ( | gsgl::real_t | n, | |
const vector & | v | |||
) | [inline] |
Multiplies a vector by a scalar.
Definition at line 116 of file vector.hpp.
References vector::get_x(), vector::get_y(), and vector::get_z().
vector gsgl::math::operator/ | ( | const vector & | v, | |
gsgl::real_t | n | |||
) | [inline] |
MATH_API const double DEG2RAD = M_PI / 180.0 |
Definition at line 50 of file math.cpp.
Referenced by body_rotator::calc_angular_velocity_aux(), moon::calc_orientation(), major_planet_rotator::calc_orientation(), body_rotator::calc_orientation_aux(), jupiter_rotator::calc_orientation_pre(), mars_rotator::calc_orientation_pre(), coord_system::draw(), satellite_element_propagator::get_elements(), gsgl::scenegraph::utils::is_on_screen(), keplerian_element_propagator::keplerian_element_propagator(), stellar_db::load_db(), spherical_quadtree::node_radius(), gsgl::scenegraph::utils::pixel_size(), test_frame::recalc(), freeview::rot_absolute(), freeview::rot_relative(), spherical_clipmap::update(), satellite_element_propagator::update(), and keplerian_element_propagator::update().
MATH_API const double PI = M_PI |
Definition at line 46 of file math.cpp.
Referenced by clipmap_ring::clipmap_ring(), simple_sphere::simple_sphere(), test_frame::update(), satellite_element_propagator::update(), and keplerian_element_propagator::update().
MATH_API const double PI_OVER_2 = M_PI * 0.5 |
Definition at line 48 of file math.cpp.
Referenced by body_rotator::calc_orientation_aux(), and simple_sphere::simple_sphere().
MATH_API const double PI_TIMES_2 = M_PI * 2.0 |
Definition at line 47 of file math.cpp.
Referenced by clipmap_ring::init(), and simple_sphere::simple_sphere().