Panda3D
|
This is an "unaligned" LVecBase4. 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 LVecBase4 class. More...
Public Types | |
enum | { num_components = 4, is_int = 0 } |
Public Member Functions | |
__init__ () | |
__init__ (const LVecBase4d copy) | |
__init__ (const UnalignedLVecBase4d copy) | |
__init__ (double x, double y, double z, double w) | |
getData () | |
Returns the address of the first of the three data elements in the vector. The remaining elements occupy the next positions consecutively in memory. More... | |
int | getNumComponents () |
Returns the number of elements in the vector, 4. More... | |
UnalignedLVecBase4d | operator= (const LVecBase4d copy) |
UnalignedLVecBase4d | operator= (const UnalignedLVecBase4d copy) |
operator[] (int i, double assign_val) | |
double | operator[] (int i) |
set (double x, double y, double z, double w) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static int | size () |
Returns 4: the number of components of a LVecBase4. More... | |
This is an "unaligned" LVecBase4. 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 LVecBase4 class.
Use it only when you need to pack numbers tightly without respect to alignment, and then copy it to a proper LVecBase4 to get actual use from it.
__init__ | ( | ) |
__init__ | ( | const LVecBase4d | copy | ) |
__init__ | ( | const UnalignedLVecBase4d | copy | ) |
__init__ | ( | double | x, |
double | y, | ||
double | z, | ||
double | w | ||
) |
|
static |
getData | ( | ) |
Returns the address of the first of the three data elements in the vector. The remaining elements occupy the next positions consecutively in memory.
int getNumComponents | ( | ) |
Returns the number of elements in the vector, 4.
UnalignedLVecBase4d operator= | ( | const LVecBase4d | copy | ) |
UnalignedLVecBase4d operator= | ( | const UnalignedLVecBase4d | copy | ) |
operator[] | ( | int | i, |
double | assign_val | ||
) |
double operator[] | ( | int | i | ) |
set | ( | double | x, |
double | y, | ||
double | z, | ||
double | w | ||
) |
|
static |
Returns 4: the number of components of a LVecBase4.