Classes |
| class | CRow |
| class | Row |
Public Types |
|
typedef const float * | const_iterator |
|
typedef const float * | iterator |
Public Member Functions |
|
| LMatrix4f (const LMatrix4f &other) |
|
| LMatrix4f (const UnalignedLMatrix4f &other) |
|
| LMatrix4f (float e00, float e01, float e02, float e03, float e10, float e11, float e12, float e13, float e20, float e21, float e22, float e23, float e30, float e31, float e32, float e33) |
|
| LMatrix4f (const LMatrix3f &upper3) |
|
| LMatrix4f (const LMatrix3f &upper3, const LVecBase3f &trans) |
|
| LMatrix4f (const EMatrix4 &m) |
| void | accumulate (const LMatrix4f &other, float weight) |
| | Computes (*this) += other * weight.
|
| size_t | add_hash (size_t hash) const |
| | Adds the vector into the running hash.
|
| size_t | add_hash (size_t hash, float threshold) const |
| | Adds the vector into the running hash.
|
| bool | almost_equal (const LMatrix4f &other, float threshold) const |
| | Returns true if two matrices are memberwise equal within a specified tolerance.
|
| bool | almost_equal (const LMatrix4f &other) const |
| | Returns true if two matrices are memberwise equal within a default tolerance based on the numeric type.
|
| iterator | begin () |
| | Returns an iterator that may be used to traverse the elements of the matrix, STL-style.
|
| const_iterator | begin () const |
| | Returns an iterator that may be used to traverse the elements of the matrix, STL-style.
|
| int | compare_to (const LMatrix4f &other) const |
| | This flavor of compare_to uses a default threshold value based on the numeric type.
|
| int | compare_to (const LMatrix4f &other, float threshold) const |
| | Sorts matrices lexicographically, componentwise.
|
| iterator | end () |
| | Returns an iterator that may be used to traverse the elements of the matrix, STL-style.
|
| const_iterator | end () const |
| | Returns an iterator that may be used to traverse the elements of the matrix, STL-style.
|
| void | fill (float fill_value) |
| | Sets each element of the matrix to the indicated fill_value.
|
| void | generate_hash (ChecksumHashGenerator &hashgen) const |
| | Adds the vector to the indicated hash generator.
|
| void | generate_hash (ChecksumHashGenerator &hashgen, float scale) const |
| | Adds the vector to the indicated hash generator.
|
| float | get_cell (int row, int col) const |
| | Returns a particular element of the matrix.
|
| LVecBase4f | get_col (int col) const |
| | Retrieves the indicated column of the matrix as a 4-component vector.
|
| LVecBase3f | get_col3 (int col) const |
| | Retrieves the indicated column of the matrix as a 3-component vector, ignoring the last row.
|
| const float * | get_data () const |
| | Returns the address of the first of the nine data elements in the matrix.
|
| size_t | get_hash () const |
| | Returns a suitable hash for phash_map.
|
| size_t | get_hash (float threshold) const |
| | Returns a suitable hash for phash_map.
|
| int | get_num_components () const |
| | Returns the number of elements in the matrix, 16.
|
| LVecBase4f | get_row (int row) const |
| | Retrieves the indicated row of the matrix as a 4-component vector.
|
| void | get_row (LVecBase4f &result_vec, int row) const |
| | Stores the indicated row of the matrix as a 4-component vector.
|
| LVecBase3f | get_row3 (int row) const |
| | Retrieves the row column of the matrix as a 3-component vector, ignoring the last column.
|
| void | get_row3 (LVecBase3f &result_vec, int row) const |
| | Stores the row column of the matrix as a 3-component vector, ignoring the last column.
|
| LMatrix3f | get_upper_3 () const |
| | Retrieves the upper 3x3 submatrix.
|
| bool | invert_affine_from (const LMatrix4f &other) |
| | Performs an invert of the indicated matrix, storing the result in this matrix.
|
| bool | invert_from (const LMatrix4f &other) |
| | Computes the inverse of the other matrix, and stores the result in this matrix.
|
| bool | invert_in_place () |
| | Inverts the current matrix.
|
| bool | is_nan () const |
| | Returns true if any component of the matrix is not-a-number, false otherwise.
|
|
typedef | LINMATH_MATRIX (float, 4, 4) EMatrix4 |
|
| MAKE_SEQ (get_rows, size, get_row) |
|
| MAKE_SEQ (get_cols, size, get_col) |
|
| MAKE_SEQ (get_row3s, size, get_row3) |
|
void | multiply (const LMatrix4f &other1, const LMatrix4f &other2) |
|
bool | operator!= (const LMatrix4f &other) const |
|
float & | operator() (int row, int col) |
|
float | operator() (int row, int col) const |
|
LMatrix4f | operator* (const LMatrix4f &other) const |
|
LMatrix4f | operator* (float scalar) const |
|
LMatrix4f & | operator*= (const LMatrix4f &other) |
|
LMatrix4f & | operator*= (float scalar) |
| LMatrix4f & | operator+= (const LMatrix4f &other) |
| | Performs a memberwise addition between two matrices.
|
| LMatrix4f & | operator-= (const LMatrix4f &other) |
| | Performs a memberwise addition between two matrices.
|
|
LMatrix4f | operator/ (float scalar) const |
|
LMatrix4f & | operator/= (float scalar) |
| bool | operator< (const LMatrix4f &other) const |
| | This performs a lexicographical comparison.
|
|
LMatrix4f & | operator= (const LMatrix4f &other) |
|
LMatrix4f & | operator= (const UnalignedLMatrix4f &other) |
|
LMatrix4f & | operator= (float fill_value) |
|
bool | operator== (const LMatrix4f &other) const |
|
CRow | operator[] (int i) const |
|
Row | operator[] (int i) |
|
void | output (ostream &out) const |
| void | read_datagram (DatagramIterator &source) |
| | Reads the matrix from the Datagram using get_stdfloat().
|
| void | read_datagram_fixed (DatagramIterator &scan) |
| | Reads the matrix from the Datagram using get_float32() or get_float64().
|
|
void | set (float e00, float e01, float e02, float e03, float e10, float e11, float e12, float e13, float e20, float e21, float e22, float e23, float e30, float e31, float e32, float e33) |
| void | set_cell (int row, int col, float value) |
| | Changes a particular element of the matrix.
|
| void | set_col (int col, const LVecBase4f &v) |
| | Replaces the indicated column of the matrix.
|
| void | set_col (int col, const LVecBase3f &v) |
| | Replaces the indicated column of the matrix with the indicated 3-component vector, ignoring the last row.
|
| void | set_rotate_mat (float angle, const LVecBase3f &axis, CoordinateSystem cs=CS_default) |
| | Sets mat to a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.
|
| void | set_rotate_mat_normaxis (float angle, const LVecBase3f &axis, CoordinateSystem cs=CS_default) |
| | Fills mat with a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.
|
| void | set_row (int row, const LVecBase4f &v) |
| | Replaces the indicated row of the matrix.
|
| void | set_row (int row, const LVecBase3f &v) |
| | Replaces the indicated row of the matrix with the indicated 3-component vector, ignoring the last column.
|
| void | set_scale_mat (const LVecBase3f &scale) |
| | Fills mat with a matrix that applies the indicated scale in each of the three axes.
|
| void | set_scale_shear_mat (const LVecBase3f &scale, const LVecBase3f &shear, CoordinateSystem cs=CS_default) |
| | Fills mat with a matrix that applies the indicated scale and shear.
|
| void | set_shear_mat (const LVecBase3f &shear, CoordinateSystem cs=CS_default) |
| | Fills mat with a matrix that applies the indicated shear in each of the three planes.
|
| void | set_translate_mat (const LVecBase3f &trans) |
| | Fills mat with a matrix that applies the indicated translation.
|
| void | set_upper_3 (const LMatrix3f &upper3) |
| | Sets the upper 3x3 submatrix.
|
|
void | transpose_from (const LMatrix4f &other) |
|
void | transpose_in_place () |
|
void | write (ostream &out, int indent_level=0) const |
| void | write_datagram (Datagram &destination) const |
| | Writes the matrix to the Datagram using add_stdfloat().
|
| void | write_datagram_fixed (Datagram &destination) const |
| | Writes the matrix to the Datagram using add_float32() or add_float64(), depending on the type of floats in the matrix, regardless of the setting of Datagram::set_stdfloat_double().
|
| LVecBase4f | xform (const LVecBase4f &v) const |
| | 4-component vector or point times matrix.
|
| void | xform_in_place (LVecBase4f &v) const |
| | 4-component vector or point times matrix.
|
| LVecBase3f | xform_point (const LVecBase3f &v) const |
| | The matrix transforms a 3-component point (including translation component) and returns the result.
|
| LVecBase3f | xform_point_general (const LVecBase3f &v) const |
| | The matrix transforms a 3-component point (including translation component) and returns the result, as a fully general operation.
|
| void | xform_point_general_in_place (LVecBase3f &v) const |
| | The matrix transforms a 3-component point (including translation component), as a fully general operation.
|
| void | xform_point_in_place (LVecBase3f &v) const |
| | The matrix transforms a 3-component point (including translation component).
|
| LVecBase3f | xform_vec (const LVecBase3f &v) const |
| | The matrix transforms a 3-component vector (without translation component) and returns the result.
|
| LVecBase3f | xform_vec_general (const LVecBase3f &v) const |
| | The matrix transforms a 3-component vector (without translation component) and returns the result, as a fully general operation.
|
| void | xform_vec_general_in_place (LVecBase3f &v) const |
| | The matrix transforms a 3-component vector (without translation component), as a fully general operation.
|
| void | xform_vec_in_place (LVecBase3f &v) const |
| | The matrix transforms a 3-component vector (without translation component).
|
Static Public Member Functions |
| static const LMatrix4f & | convert_mat (CoordinateSystem from, CoordinateSystem to) |
| | Returns a matrix that transforms from the indicated coordinate system to the indicated coordinate system.
|
|
static TypeHandle | get_class_type () |
| static const LMatrix4f & | ident_mat () |
| | Returns an identity matrix.
|
|
static void | init_type () |
| static const LMatrix4f & | ones_mat () |
| | Returns an matrix filled with ones.
|
| static LMatrix4f | rotate_mat (float angle, const LVecBase3f &axis, CoordinateSystem cs=CS_default) |
| | Returns a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.
|
| static LMatrix4f | rotate_mat_normaxis (float angle, const LVecBase3f &axis, CoordinateSystem cs=CS_default) |
| | Returns a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.
|
| static LMatrix4f | scale_mat (const LVecBase3f &scale) |
| | Returns a matrix that applies the indicated scale in each of the three axes.
|
| static LMatrix4f | scale_mat (float sx, float sy, float sz) |
| | Returns a matrix that applies the indicated scale in each of the three axes.
|
| static LMatrix4f | scale_mat (float scale) |
| | Returns a matrix that applies the indicated uniform scale.
|
| static LMatrix4f | scale_shear_mat (const LVecBase3f &scale, const LVecBase3f &shear, CoordinateSystem cs=CS_default) |
| | Returns a matrix that applies the indicated scale and shear.
|
| static LMatrix4f | scale_shear_mat (float sx, float sy, float sz, float shxy, float shxz, float shyz, CoordinateSystem cs=CS_default) |
| | Returns a matrix that applies the indicated scale and shear.
|
| static LMatrix4f | shear_mat (const LVecBase3f &shear, CoordinateSystem cs=CS_default) |
| | Returns a matrix that applies the indicated shear in each of the three planes.
|
| static LMatrix4f | shear_mat (float shxy, float shxz, float shyz, CoordinateSystem cs=CS_default) |
| | Returns a matrix that applies the indicated shear in each of the three planes.
|
| static int | size () |
| | Returns 4: the number of rows of a LMatrix4.
|
| static LMatrix4f | translate_mat (const LVecBase3f &trans) |
| | Returns a matrix that applies the indicated translation.
|
| static LMatrix4f | translate_mat (float tx, float ty, float tz) |
| | Returns a matrix that applies the indicated translation.
|
| static const LMatrix4f & | y_to_z_up_mat () |
| | Returns a matrix that transforms from the Y-up coordinate system to the Z-up coordinate system.
|
| static const LMatrix4f & | z_to_y_up_mat () |
| | Returns a matrix that transforms from the Y-up coordinate system to the Z-up coordinate system.
|
| static const LMatrix4f & | zeros_mat () |
| | Returns an matrix filled with zeros.
|
Public Attributes |
|
EMatrix4 | _m |