#include <transform.hpp>
Definition at line 51 of file transform.hpp.
Public Member Functions | |
void | from_stream (io::text_stream &s) |
vector | get_basis_x () const |
vector | get_basis_y () const |
vector | get_basis_z () const |
transform | inverse () const |
T & | item (int i, int j) |
const T & | item (int i, int j) const |
transform | operator* (const transform &t) const |
vector | operator* (const vector &v) const |
transform & | operator= (const quaternion &) |
transform & | operator= (const matrix< 4, 4, gsgl::real_t > &) |
transform & | operator= (const transform &) |
bool | operator== (const matrix< R, C, T > &m) const |
gsgl::real_t & | operator[] (const gsgl::index_t &i) |
const gsgl::real_t & | operator[] (const gsgl::index_t &i) const |
T * | ptr () |
const T * | ptr () const |
Returns an array containing the matrix's data, in column-major order. | |
transform | rotation_part () const |
void | set_basis_x (const vector &) |
void | set_basis_x (const gsgl::real_t &x, const gsgl::real_t &y, const gsgl::real_t &z) |
void | set_basis_y (const vector &) |
void | set_basis_y (const gsgl::real_t &x, const gsgl::real_t &y, const gsgl::real_t &z) |
void | set_basis_z (const vector &) |
void | set_basis_z (const gsgl::real_t &x, const gsgl::real_t &y, const gsgl::real_t &z) |
void | to_stream (io::text_stream &s) const |
transform (const matrix< 4, 4, gsgl::real_t > &) | |
transform (const transform &) | |
transform (const quaternion &) | |
transform (const gsgl::real_t *) | |
transform () | |
vector | translation_part () const |
transform | transpose () const |
virtual | ~transform () |
Static Public Member Functions | |
static transform | parse (const gsgl::string &) |
static transform | scale (const gsgl::real_t &, const gsgl::real_t &, const gsgl::real_t &) |
static transform | scale (const gsgl::real_t &s) |
static transform | translation_transform (const vector &) |
Static Public Attributes | |
static transform | IDENTITY |
Protected Attributes | |
T | data [R *C] |
transform | ( | ) |
Definition at line 48 of file transform.cpp.
transform | ( | const gsgl::real_t * | data | ) | [explicit] |
Definition at line 54 of file transform.cpp.
transform | ( | const quaternion & | q | ) | [explicit] |
Definition at line 66 of file transform.cpp.
Definition at line 60 of file transform.cpp.
transform | ( | const matrix< 4, 4, gsgl::real_t > & | m | ) |
Definition at line 72 of file transform.cpp.
~transform | ( | ) | [virtual] |
Definition at line 118 of file transform.cpp.
void from_stream | ( | io::text_stream & | s | ) | [inline, inherited] |
vector get_basis_x | ( | ) | const |
vector get_basis_y | ( | ) | const |
vector get_basis_z | ( | ) | const |
transform inverse | ( | ) | const |
Definition at line 312 of file transform.cpp.
References matrix::data.
Referenced by rigid_body::init(), and spherical_quadtree::update().
T& item | ( | int | i, | |
int | j | |||
) | [inline, inherited] |
Definition at line 67 of file matrix.hpp.
const T& item | ( | int | i, | |
int | j | |||
) | const [inline, inherited] |
Definition at line 66 of file matrix.hpp.
Referenced by matrix::from_stream(), list_iterator::operator*(), matrix::to_stream(), and transform::transpose().
Definition at line 101 of file transform.hpp.
transform & operator= | ( | const quaternion & | q | ) |
Definition at line 92 of file transform.cpp.
References matrix::data, quaternion::w, quaternion::x, quaternion::y, and quaternion::z.
transform & operator= | ( | const matrix< 4, 4, gsgl::real_t > & | m | ) |
bool operator== | ( | const matrix< R, C, T > & | m | ) | const [inline, inherited] |
gsgl::real_t& operator[] | ( | const gsgl::index_t & | i | ) | [inline] |
Definition at line 70 of file transform.hpp.
const gsgl::real_t& operator[] | ( | const gsgl::index_t & | i | ) | const [inline] |
Definition at line 69 of file transform.hpp.
transform parse | ( | const gsgl::string & | str | ) | [static] |
Definition at line 356 of file transform.cpp.
References iterable::iter(), gsgl::math::units::parse(), and string::split().
T* ptr | ( | ) | [inline, inherited] |
Definition at line 71 of file matrix.hpp.
const T* ptr | ( | ) | const [inline, inherited] |
Returns an array containing the matrix's data, in column-major order.
Definition at line 70 of file matrix.hpp.
Referenced by planet_system::draw(), large_rocky_body::draw(), celestial_body::draw(), gsgl::scenegraph::utils::draw_billboard(), node::draw_scene(), gsgl::math::matrix_utils::multiply(), vector::operator=(), transform::operator=(), quaternion::operator=(), display::record_3d_text_info(), and gsgl::scenegraph::utils::save_screen_info().
transform rotation_part | ( | ) | const |
Definition at line 131 of file transform.cpp.
References matrix::data, and transform::IDENTITY.
Referenced by gsgl::scenegraph::utils::draw_billboard().
transform scale | ( | const gsgl::real_t & | x, | |
const gsgl::real_t & | y, | |||
const gsgl::real_t & | z | |||
) | [static] |
transform scale | ( | const gsgl::real_t & | s | ) | [static] |
Definition at line 340 of file transform.cpp.
void set_basis_x | ( | const vector & | v | ) |
Definition at line 181 of file transform.cpp.
References vector::get_x(), vector::get_y(), vector::get_z(), and transform::set_basis_x().
void set_basis_x | ( | const gsgl::real_t & | x, | |
const gsgl::real_t & | y, | |||
const gsgl::real_t & | z | |||
) |
Definition at line 174 of file transform.cpp.
References matrix::data.
Referenced by camera::camera(), and transform::set_basis_x().
void set_basis_y | ( | const vector & | v | ) |
Definition at line 194 of file transform.cpp.
References vector::get_x(), vector::get_y(), vector::get_z(), and transform::set_basis_y().
void set_basis_y | ( | const gsgl::real_t & | x, | |
const gsgl::real_t & | y, | |||
const gsgl::real_t & | z | |||
) |
Definition at line 187 of file transform.cpp.
References matrix::data.
Referenced by camera::camera(), and transform::set_basis_y().
void set_basis_z | ( | const vector & | v | ) |
Definition at line 207 of file transform.cpp.
References vector::get_x(), vector::get_y(), vector::get_z(), and transform::set_basis_z().
void set_basis_z | ( | const gsgl::real_t & | x, | |
const gsgl::real_t & | y, | |||
const gsgl::real_t & | z | |||
) |
Definition at line 200 of file transform.cpp.
References matrix::data.
Referenced by camera::camera(), and transform::set_basis_z().
void to_stream | ( | io::text_stream & | s | ) | const [inline, inherited] |
vector translation_part | ( | ) | const |
Definition at line 330 of file transform.cpp.
References matrix::data, vector::get_x(), vector::get_y(), vector::get_z(), and transform::IDENTITY.
Referenced by node::build_draw_list(), and node_relative_path::calc_relative_transform().
transform transpose | ( | ) | const |
Definition at line 320 of file transform.cpp.
References matrix::item().
Referenced by node::build_draw_list(), rigid_body::compute_derived_quantities(), gsgl::scenegraph::utils::draw_billboard(), and rigid_body::init().
T data[R *C] [protected, inherited] |
Definition at line 58 of file matrix.hpp.
Referenced by vector::cross(), vector::dot(), transform::get_basis_x(), transform::get_basis_y(), transform::get_basis_z(), transform::inverse(), matrix< 4, 1, float >::item(), vector::mag(), vector::mag2(), matrix::matrix(), vector::normalize(), vector::normalize_h(), vector::operator*(), vector::operator*=(), vector::operator+(), vector::operator+=(), vector::operator-(), vector::operator-=(), vector::operator=(), transform::operator=(), matrix::operator=(), matrix::operator==(), vector::parse(), matrix< 4, 1, float >::ptr(), transform::rotation_part(), transform::scale(), transform::set_basis_x(), transform::set_basis_y(), transform::set_basis_z(), transform::translation_part(), transform::translation_transform(), and vector::vector().
Definition at line 116 of file transform.hpp.
Referenced by node_relative_path::calc_relative_transform(), vehicle::calculate_inertia_tensor(), node::pre_draw_scene(), freeview::reset(), transform::rotation_part(), transform::scale(), and transform::translation_transform().