Panda3D
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

LMatrix3f Class Reference

This is a 3-by-3 transform matrix. More...

#include "lmatrix.h"

List of all members.

Classes

class  CRow
class  Row

Public Types

typedef const float * const_iterator
typedef const float * iterator

Public Member Functions

 LMatrix3f (const LMatrix3f &other)
 LMatrix3f (float e00, float e01, float e02, float e10, float e11, float e12, float e20, float e21, float e22)
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 LMatrix3f &other, float threshold) const
 Returns true if two matrices are memberwise equal within a specified tolerance.
bool almost_equal (const LMatrix3f &other) const
 Returns true if two matrices are memberwise equal within a default tolerance based on the numeric type.
const_iterator begin () const
 Returns an iterator that may be used to traverse the elements of the matrix, STL-style.
iterator begin ()
 Returns an iterator that may be used to traverse the elements of the matrix, STL-style.
int compare_to (const LMatrix3f &other) const
 This flavor of compare_to uses a default threshold value based on the numeric type.
int compare_to (const LMatrix3f &other, float threshold) const
 Sorts matrices lexicographically, componentwise.
float determinant () const
 Returns the determinant of the matrix.
const_iterator end () const
 Returns an iterator that may be used to traverse the elements of the matrix, STL-style.
iterator end ()
 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 threshold) const
 Adds the vector to the indicated hash generator.
float get_cell (int row, int col) const
 Returns a particular element of the matrix.
LVecBase3f get_col (int col) const
 Returns the indicated column of the matrix as a three-component vector.
LVecBase2f get_col2 (int col) const
 Returns the indicated column of the matrix as a two-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, nine.
void get_row (LVecBase3f &result_vec, int row) const
LVecBase3f get_row (int row) const
 Returns the indicated row of the matrix as a three-component vector.
LVecBase2f get_row2 (int row) const
 Returns the indicated row of the matrix as a two-component vector, ignoring the last column.
bool invert_from (const LMatrix3f &other)
 Computes the inverse of the other matrix, and stores the result in this matrix.
bool invert_in_place ()
 Inverts the current matrix.
bool invert_transpose_from (const LMatrix4f &other)
 Simultaneously computes the inverse of the indicated matrix, and then the transpose of that inverse.
bool invert_transpose_from (const LMatrix3f &other)
 Simultaneously computes the inverse of the indicated matrix, and then the transpose of that inverse.
bool is_nan () const
 Returns true if any component of the matrix is not-a-number, false otherwise.
 MAKE_SEQ (get_row2s, size, get_row2)
 MAKE_SEQ (get_col2s, size, get_col2)
 MAKE_SEQ (get_rows, size, get_row)
 MAKE_SEQ (get_cols, size, get_col)
void multiply (const LMatrix3f &other1, const LMatrix3f &other2)
bool operator!= (const LMatrix3f &other) const
float & operator() (int row, int col)
float operator() (int row, int col) const
LMatrix3f operator* (const LMatrix3f &other) const
LMatrix3f operator* (float scalar) const
LMatrix3foperator*= (const LMatrix3f &other)
LMatrix3foperator*= (float scalar)
 Performs a memberwise scale.
LMatrix3foperator+= (const LMatrix3f &other)
 Performs a memberwise addition between two matrices.
LMatrix3foperator-= (const LMatrix3f &other)
 Performs a memberwise subtraction between two matrices.
LMatrix3f operator/ (float scalar) const
LMatrix3foperator/= (float scalar)
 Performs a memberwise scale.
bool operator< (const LMatrix3f &other) const
 This performs a lexicographical comparison.
LMatrix3foperator= (float fill_value)
LMatrix3foperator= (const LMatrix3f &other)
bool operator== (const LMatrix3f &other) const
Row operator[] (int i)
CRow operator[] (int i) const
void output (ostream &out) const
void read_datagram (DatagramIterator &scan)
 Reads itself out of the datagram.
void set (float e00, float e01, float e02, float e10, float e11, float e12, float e20, float e21, float e22)
void set_cell (int row, int col, float value)
 Changes a particular element of the matrix.
void set_col (int col, const LVecBase2f &v)
 Replaces the indicated column of the matrix from a two-component vector, ignoring the last row.
void set_col (int col, const LVecBase3f &v)
 Replaces the indicated column of the matrix from a three-component vector.
void set_rotate_mat (float angle)
 Fills mat with a matrix that rotates by the given angle in degrees counterclockwise.
void set_rotate_mat (float angle, 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_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 LVecBase3f &v)
 Replaces the indicated row of the matrix from a three-component vector.
void set_row (int row, const LVecBase2f &v)
 Replaces the indicated row of the matrix from a two-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_mat (const LVecBase2f &scale)
 Fills mat with a matrix that applies the indicated scale in each of the two 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 LVecBase2f &trans)
 Fills mat with a matrix that applies the indicated translation.
void transpose_from (const LMatrix3f &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.
LVecBase3f xform (const LVecBase3f &v) const
 3-component vector or point times matrix.
LVecBase2f xform_point (const LVecBase2f &v) const
 The matrix transforms a 2-component point (including translation component) and returns the result.
LVecBase3f xform_vec (const LVecBase3f &v) const
 The matrix transforms a 3-component vector and returns the result.
LVecBase2f xform_vec (const LVecBase2f &v) const
 The matrix transforms a 2-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.

Static Public Member Functions

static const LMatrix3fconvert_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 LMatrix3fident_mat ()
 Returns an identity matrix.
static void init_type ()
static LMatrix3f rotate_mat (float angle, LVecBase3f axis, CoordinateSystem cs=CS_default)
 Returns a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.
static LMatrix3f rotate_mat (float angle)
 Returns a matrix that rotates by the given angle in degrees counterclockwise.
static LMatrix3f 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 LMatrix3f scale_mat (const LVecBase3f &scale)
 Returns a matrix that applies the indicated scale in each of the three axes.
static LMatrix3f scale_mat (float sx, float sy, float sz)
 Returns a matrix that applies the indicated scale in each of the three axes.
static LMatrix3f scale_mat (const LVecBase2f &scale)
 Returns a matrix that applies the indicated scale in each of the two axes.
static LMatrix3f scale_mat (float sx, float sy)
 Returns a matrix that applies the indicated scale in each of the two axes.
static LMatrix3f scale_shear_mat (const LVecBase3f &scale, const LVecBase3f &shear, CoordinateSystem cs=CS_default)
 Returns a matrix that applies the indicated scale and shear.
static LMatrix3f 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 LMatrix3f 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 LMatrix3f shear_mat (const LVecBase3f &shear, CoordinateSystem cs=CS_default)
 Returns a matrix that applies the indicated shear in each of the three planes.
static int size ()
 Returns 3: the number of rows of a LMatrix3.
static LMatrix3f translate_mat (const LVecBase2f &trans)
 Returns a matrix that applies the indicated translation.
static LMatrix3f translate_mat (float tx, float ty)
 Returns a matrix that applies the indicated translation.

Public Attributes

union {
   float   data [3 *3]
   struct {
      float   _00
      float   _01
      float   _02
      float   _10
      float   _11
      float   _12
      float   _20
      float   _21
      float   _22
   }   m
_m

Detailed Description

This is a 3-by-3 transform matrix.

It typically will represent either a rotation-and-scale (no translation) matrix in 3-d, or a full affine matrix (rotation, scale, translation) in 2-d, e.g. for a texture matrix.

Definition at line 104 of file lmatrix.h.


Member Function Documentation

size_t LMatrix3f::add_hash ( size_t  hash) const [inline]

Adds the vector into the running hash.

Definition at line 2765 of file lmatrix.h.

size_t LMatrix3f::add_hash ( size_t  hash,
float  threshold 
) const [inline]

Adds the vector into the running hash.

Definition at line 2775 of file lmatrix.h.

bool LMatrix3f::almost_equal ( const LMatrix3f other,
float  threshold 
) const

Returns true if two matrices are memberwise equal within a specified tolerance.

Definition at line 435 of file lmatrix.cxx.

Referenced by FFTCompressor::write_hprs().

bool LMatrix3f::almost_equal ( const LMatrix3f other) const [inline]

Returns true if two matrices are memberwise equal within a default tolerance based on the numeric type.

Definition at line 3547 of file lmatrix.h.

LMatrix3f::iterator LMatrix3f::begin ( ) [inline]

Returns an iterator that may be used to traverse the elements of the matrix, STL-style.

Definition at line 2657 of file lmatrix.h.

LMatrix3f::const_iterator LMatrix3f::begin ( ) const [inline]

Returns an iterator that may be used to traverse the elements of the matrix, STL-style.

Definition at line 2679 of file lmatrix.h.

int LMatrix3f::compare_to ( const LMatrix3f other) const [inline]

This flavor of compare_to uses a default threshold value based on the numeric type.

Definition at line 2735 of file lmatrix.h.

int LMatrix3f::compare_to ( const LMatrix3f other,
float  threshold 
) const

Sorts matrices lexicographically, componentwise.

Returns a number less than 0 if this matrix sorts before the other one, greater than zero if it sorts after, 0 if they are equivalent (within the indicated tolerance).

Definition at line 305 of file lmatrix.cxx.

const LMatrix3f & LMatrix3f::convert_mat ( CoordinateSystem  from,
CoordinateSystem  to 
) [static]

Returns a matrix that transforms from the indicated coordinate system to the indicated coordinate system.

Definition at line 222 of file lmatrix.cxx.

float LMatrix3f::determinant ( ) const [inline]

Returns the determinant of the matrix.

Definition at line 3153 of file lmatrix.h.

LMatrix3f::iterator LMatrix3f::end ( ) [inline]

Returns an iterator that may be used to traverse the elements of the matrix, STL-style.

Definition at line 2668 of file lmatrix.h.

LMatrix3f::const_iterator LMatrix3f::end ( ) const [inline]

Returns an iterator that may be used to traverse the elements of the matrix, STL-style.

Definition at line 2690 of file lmatrix.h.

void LMatrix3f::fill ( float  fill_value)

Sets each element of the matrix to the indicated fill_value.

This is of questionable value, but is sometimes useful when initializing to zero.

Definition at line 288 of file lmatrix.cxx.

void LMatrix3f::generate_hash ( ChecksumHashGenerator hashgen) const [inline]

Adds the vector to the indicated hash generator.

Definition at line 3557 of file lmatrix.h.

void LMatrix3f::generate_hash ( ChecksumHashGenerator hashgen,
float  threshold 
) const

Adds the vector to the indicated hash generator.

Definition at line 524 of file lmatrix.cxx.

float LMatrix3f::get_cell ( int  row,
int  col 
) const [inline]

Returns a particular element of the matrix.

Definition at line 2612 of file lmatrix.h.

LVecBase3f LMatrix3f::get_col ( int  col) const [inline]

Returns the indicated column of the matrix as a three-component vector.

Definition at line 2511 of file lmatrix.h.

LVecBase2f LMatrix3f::get_col2 ( int  col) const [inline]

Returns the indicated column of the matrix as a two-component vector, ignoring the last row.

Definition at line 2533 of file lmatrix.h.

const float * LMatrix3f::get_data ( ) const [inline]

Returns the address of the first of the nine data elements in the matrix.

The remaining elements occupy the next eight positions in row-major order.

Definition at line 2636 of file lmatrix.h.

Referenced by PhysxManager::mat3_to_nxMat33().

size_t LMatrix3f::get_hash ( ) const [inline]

Returns a suitable hash for phash_map.

Definition at line 2745 of file lmatrix.h.

size_t LMatrix3f::get_hash ( float  threshold) const [inline]

Returns a suitable hash for phash_map.

Definition at line 2755 of file lmatrix.h.

int LMatrix3f::get_num_components ( ) const [inline]

Returns the number of elements in the matrix, nine.

Definition at line 2646 of file lmatrix.h.

LVecBase3f LMatrix3f::get_row ( int  row) const [inline]

Returns the indicated row of the matrix as a three-component vector.

Definition at line 2493 of file lmatrix.h.

LVecBase2f LMatrix3f::get_row2 ( int  row) const [inline]

Returns the indicated row of the matrix as a two-component vector, ignoring the last column.

Definition at line 2522 of file lmatrix.h.

const LMatrix3f & LMatrix3f::ident_mat ( ) [inline, static]

Returns an identity matrix.

This function definition must appear first, since some inline functions below take advantage of it.

Definition at line 2345 of file lmatrix.h.

Referenced by PhysxActor::get_c_mass_global_orientation(), PhysxActor::get_c_mass_local_orientation(), PhysxActor::get_global_inertia_tensor(), PhysxActor::get_global_inertia_tensor_inverse(), and TransformState::get_mat3().

bool LMatrix3f::invert_from ( const LMatrix3f other) [inline]

Computes the inverse of the other matrix, and stores the result in this matrix.

This is a fully general operation and makes no assumptions about the type of transform represented by the matrix.

The other matrix must be a different object than this matrix. However, if you need to invert a matrix in place, see invert_in_place.

The return value is true if the matrix was successfully inverted, false if the was a singularity.

Definition at line 3176 of file lmatrix.h.

bool LMatrix3f::invert_in_place ( ) [inline]

Inverts the current matrix.

Returns true if the inverse is successful, false if the matrix was singular.

Definition at line 3217 of file lmatrix.h.

bool LMatrix3f::invert_transpose_from ( const LMatrix3f other) [inline]

Simultaneously computes the inverse of the indicated matrix, and then the transpose of that inverse.

Definition at line 3230 of file lmatrix.h.

bool LMatrix3f::invert_transpose_from ( const LMatrix4f other) [inline]

Simultaneously computes the inverse of the indicated matrix, and then the transpose of that inverse.

Definition at line 3266 of file lmatrix.h.

bool LMatrix3f::is_nan ( ) const [inline]
LMatrix3f & LMatrix3f::operator*= ( float  scalar) [inline]

Performs a memberwise scale.

Definition at line 3047 of file lmatrix.h.

LMatrix3f & LMatrix3f::operator+= ( const LMatrix3f other) [inline]

Performs a memberwise addition between two matrices.

Definition at line 2987 of file lmatrix.h.

LMatrix3f & LMatrix3f::operator-= ( const LMatrix3f other) [inline]

Performs a memberwise subtraction between two matrices.

Definition at line 3010 of file lmatrix.h.

LMatrix3f & LMatrix3f::operator/= ( float  scalar) [inline]

Performs a memberwise scale.

Definition at line 3070 of file lmatrix.h.

bool LMatrix3f::operator< ( const LMatrix3f other) const [inline]

This performs a lexicographical comparison.

It's of questionable mathematical meaning, but sometimes has a practical purpose for sorting unique vectors, especially in an STL container. Also see compare_to().

Definition at line 2704 of file lmatrix.h.

void LMatrix3f::read_datagram ( DatagramIterator scan)

Reads itself out of the datagram.

Definition at line 551 of file lmatrix.cxx.

LMatrix3f LMatrix3f::rotate_mat ( float  angle) [inline, static]

Returns a matrix that rotates by the given angle in degrees counterclockwise.

Definition at line 3371 of file lmatrix.h.

Referenced by PSphereLens::extrude_impl().

LMatrix3f LMatrix3f::rotate_mat ( float  angle,
LVecBase3f  axis,
CoordinateSystem  cs = CS_default 
) [inline, static]

Returns a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.

Definition at line 3410 of file lmatrix.h.

LMatrix3f LMatrix3f::rotate_mat_normaxis ( float  angle,
const LVecBase3f axis,
CoordinateSystem  cs = CS_default 
) [inline, static]

Returns a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.

Assumes axis has been normalized.

Definition at line 3425 of file lmatrix.h.

LMatrix3f LMatrix3f::scale_mat ( float  sx,
float  sy 
) [inline, static]

Returns a matrix that applies the indicated scale in each of the two axes.

Definition at line 3397 of file lmatrix.h.

LMatrix3f LMatrix3f::scale_mat ( const LVecBase3f scale) [inline, static]

Returns a matrix that applies the indicated scale in each of the three axes.

Definition at line 3452 of file lmatrix.h.

LMatrix3f LMatrix3f::scale_mat ( float  sx,
float  sy,
float  sz 
) [inline, static]

Returns a matrix that applies the indicated scale in each of the three axes.

Definition at line 3465 of file lmatrix.h.

LMatrix3f LMatrix3f::scale_mat ( const LVecBase2f scale) [inline, static]

Returns a matrix that applies the indicated scale in each of the two axes.

Definition at line 3384 of file lmatrix.h.

LMatrix3f LMatrix3f::scale_shear_mat ( const LVecBase3f scale,
const LVecBase3f shear,
CoordinateSystem  cs = CS_default 
) [inline, static]

Returns a matrix that applies the indicated scale and shear.

Definition at line 3516 of file lmatrix.h.

LMatrix3f LMatrix3f::scale_shear_mat ( float  sx,
float  sy,
float  sz,
float  shxy,
float  shxz,
float  shyz,
CoordinateSystem  cs = CS_default 
) [inline, static]

Returns a matrix that applies the indicated scale and shear.

Definition at line 3531 of file lmatrix.h.

void LMatrix3f::set_cell ( int  row,
int  col,
float  value 
) [inline]

Changes a particular element of the matrix.

Definition at line 2623 of file lmatrix.h.

void LMatrix3f::set_col ( int  col,
const LVecBase2f v 
) [inline]

Replaces the indicated column of the matrix from a two-component vector, ignoring the last row.

Definition at line 2481 of file lmatrix.h.

void LMatrix3f::set_col ( int  col,
const LVecBase3f v 
) [inline]

Replaces the indicated column of the matrix from a three-component vector.

Definition at line 2456 of file lmatrix.h.

void LMatrix3f::set_rotate_mat ( float  angle,
LVecBase3f  axis,
CoordinateSystem  cs = CS_default 
)

Fills mat with a matrix that rotates by the given angle in degrees counterclockwise about the indicated vector.

Definition at line 323 of file lmatrix.cxx.

void LMatrix3f::set_rotate_mat ( float  angle) [inline]

Fills mat with a matrix that rotates by the given angle in degrees counterclockwise.

Definition at line 3315 of file lmatrix.h.

void LMatrix3f::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.

Assumes axis has been normalized.

Definition at line 384 of file lmatrix.cxx.

void LMatrix3f::set_row ( int  row,
const LVecBase3f v 
) [inline]

Replaces the indicated row of the matrix from a three-component vector.

Definition at line 2443 of file lmatrix.h.

void LMatrix3f::set_row ( int  row,
const LVecBase2f v 
) [inline]

Replaces the indicated row of the matrix from a two-component vector, ignoring the last column.

Definition at line 2469 of file lmatrix.h.

void LMatrix3f::set_scale_mat ( const LVecBase3f scale) [inline]

Fills mat with a matrix that applies the indicated scale in each of the three axes.

Definition at line 3439 of file lmatrix.h.

void LMatrix3f::set_scale_mat ( const LVecBase2f scale) [inline]

Fills mat with a matrix that applies the indicated scale in each of the two axes.

Definition at line 3332 of file lmatrix.h.

void LMatrix3f::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.

Definition at line 143 of file lmatrix.cxx.

void LMatrix3f::set_shear_mat ( const LVecBase3f shear,
CoordinateSystem  cs = CS_default 
) [inline]

Fills mat with a matrix that applies the indicated shear in each of the three planes.

Definition at line 3478 of file lmatrix.h.

void LMatrix3f::set_translate_mat ( const LVecBase2f trans) [inline]

Fills mat with a matrix that applies the indicated translation.

Definition at line 3302 of file lmatrix.h.

LMatrix3f LMatrix3f::shear_mat ( const LVecBase3f shear,
CoordinateSystem  cs = CS_default 
) [inline, static]

Returns a matrix that applies the indicated shear in each of the three planes.

Definition at line 3490 of file lmatrix.h.

LMatrix3f LMatrix3f::shear_mat ( float  shxy,
float  shxz,
float  shyz,
CoordinateSystem  cs = CS_default 
) [inline, static]

Returns a matrix that applies the indicated shear in each of the three planes.

Definition at line 3503 of file lmatrix.h.

int LMatrix3f::size ( ) [inline, static]

Returns 3: the number of rows of a LMatrix3.

Definition at line 2587 of file lmatrix.h.

LMatrix3f LMatrix3f::translate_mat ( float  tx,
float  ty 
) [inline, static]

Returns a matrix that applies the indicated translation.

Definition at line 3358 of file lmatrix.h.

LMatrix3f LMatrix3f::translate_mat ( const LVecBase2f trans) [inline, static]

Returns a matrix that applies the indicated translation.

Definition at line 3345 of file lmatrix.h.

void LMatrix3f::write_datagram ( Datagram destination) const

Writes the matrix to the datagram.

Definition at line 538 of file lmatrix.cxx.

LVecBase3f LMatrix3f::xform ( const LVecBase3f v) const [inline]

3-component vector or point times matrix.

Definition at line 2805 of file lmatrix.h.

LVecBase2f LMatrix3f::xform_point ( const LVecBase2f v) const [inline]

The matrix transforms a 2-component point (including translation component) and returns the result.

This assumes the matrix is an affine transform.

Definition at line 2821 of file lmatrix.h.

LVecBase2f LMatrix3f::xform_vec ( const LVecBase2f v) const [inline]

The matrix transforms a 2-component vector (without translation component) and returns the result.

This assumes the matrix is an affine transform.

Definition at line 2841 of file lmatrix.h.

LVecBase3f LMatrix3f::xform_vec ( const LVecBase3f v) const [inline]

The matrix transforms a 3-component vector and returns the result.

This assumes the matrix is an orthonormal transform.

In practice, this is the same computation as xform().

Definition at line 2867 of file lmatrix.h.

LVecBase3f LMatrix3f::xform_vec_general ( const LVecBase3f v) const [inline]

The matrix transforms a 3-component vector (without translation component) and returns the result, as a fully general operation.

Definition at line 2888 of file lmatrix.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations