Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
UnalignedLMatrix4d Class Reference

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

#include "lmatrix.h"

Public Types

enum  { num_components = 16 }
 
typedef LSimpleMatrix< double, 4, 4 > UMatrix4
 

Public Member Functions

 UnalignedLMatrix4d (const LMatrix4d &copy)
 
 UnalignedLMatrix4d (const UnalignedLMatrix4d &copy)
 
 UnalignedLMatrix4d (double e00, double e01, double e02, double e03, double e10, double e11, double e12, double e13, double e20, double e21, double e22, double e23, double e30, double e31, double e32, double e33)
 
const double * get_data () const
 Returns the address of the first of the nine data elements in the matrix. More...
 
int get_num_components () const
 Returns the number of elements in the matrix, sixteen. More...
 
double & operator() (int row, int col)
 
double operator() (int row, int col) const
 
UnalignedLMatrix4doperator= (const LMatrix4d &copy)
 
UnalignedLMatrix4doperator= (const UnalignedLMatrix4d &copy)
 
void set (double e00, double e01, double e02, double e03, double e10, double e11, double e12, double e13, double e20, double e21, double e22, double e23, double e30, double e31, double e32, double e33)
 

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 5021 of file lmatrix.h.

Member Function Documentation

◆ get_data()

const double * UnalignedLMatrix4d::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 7019 of file lmatrix.h.

◆ get_num_components()

int UnalignedLMatrix4d::get_num_components ( ) const
inline

Returns the number of elements in the matrix, sixteen.

Definition at line 7029 of file lmatrix.h.


The documentation for this class was generated from the following files: