Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes
UnalignedLMatrix4f Class Reference

This is an "unaligned" LMatrix4. More...

#include "lmatrix.h"

List of all members.

Public Member Functions

 UnalignedLMatrix4f (const LMatrix4f &copy)
 UnalignedLMatrix4f (const UnalignedLMatrix4f &copy)
 UnalignedLMatrix4f (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)
const float * get_data () const
 Returns the address of the first of the nine data elements in the matrix.
int get_num_components () const
 Returns the number of elements in the matrix, sixteen.
float & operator() (int row, int col)
float operator() (int row, int col) const
UnalignedLMatrix4foperator= (const LMatrix4f &copy)
UnalignedLMatrix4foperator= (const UnalignedLMatrix4f &copy)
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)
typedef UNALIGNED_LINMATH_MATRIX (float, 4, 4) UMatrix4

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()

Public Attributes

UMatrix4 _m

Detailed Description

This is an "unaligned" LMatrix4.

It has no functionality other than to store numbers, and it will pack them in as tightly as possible, avoiding any SSE2 alignment requirements shared by the primary LMatrix4 class.

Use it only when you need to pack numbers tightly without respect to alignment, and then copy it to a proper LMatrix4 to get actual use from it.

Definition at line 728 of file lmatrix.h.


Member Function Documentation

const float * UnalignedLMatrix4f::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 2646 of file lmatrix.h.

Returns the number of elements in the matrix, sixteen.

Definition at line 2656 of file lmatrix.h.


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