#include <matrix.hpp>


Implements an RxC matrix, where R is the number of rows and C is the number of columns.
Definition at line 54 of file matrix.hpp.
Public Member Functions | |
| void | from_stream (io::text_stream &s) |
| T & | item (int i, int j) |
| const T & | item (int i, int j) const |
| matrix (const matrix< R, C, T > &) | |
| matrix (const T *) | |
| Initializes the matrix from an array in column-major order. | |
| matrix () | |
| matrix & | operator= (const matrix< R, C, T > &) |
| bool | operator== (const matrix< R, C, T > &m) const |
| T * | ptr () |
| const T * | ptr () const |
| Returns an array containing the matrix's data, in column-major order. | |
| void | to_stream (io::text_stream &s) const |
| virtual | ~matrix () |
Protected Attributes | |
| T | data [R *C] |
| matrix | ( | ) | [inline] |
| matrix | ( | const T * | ptr | ) | [inline, explicit] |
Initializes the matrix from an array in column-major order.
Definition at line 90 of file matrix.hpp.
References matrix::data.
| ~matrix | ( | ) | [inline, virtual] |
Definition at line 111 of file matrix.hpp.
| void from_stream | ( | io::text_stream & | s | ) | [inline] |
| T& item | ( | int | i, | |
| int | j | |||
| ) | [inline] |
Definition at line 67 of file matrix.hpp.
| const T& item | ( | int | i, | |
| int | j | |||
| ) | const [inline] |
Definition at line 66 of file matrix.hpp.
Referenced by matrix::from_stream(), list_iterator::operator*(), matrix::to_stream(), and transform::transpose().
| bool operator== | ( | const matrix< R, C, T > & | m | ) | const [inline] |
| T* ptr | ( | ) | [inline] |
Definition at line 71 of file matrix.hpp.
| const T* ptr | ( | ) | const [inline] |
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().
| void to_stream | ( | io::text_stream & | s | ) | const [inline] |
T data[R *C] [protected] |
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().
1.5.5