This is an "unaligned" LVecBase4. More...
Public Member Functions | |
UnalignedLVecBase4f () | |
UnalignedLVecBase4f (VBase4 const copy) | |
UnalignedLVecBase4f (UnalignedLVecBase4f const copy) | |
UnalignedLVecBase4f (float x, float y, float z, float w) | |
getData () | |
Returns the address of the first of the three data elements in the vector. | |
int | getNumComponents () |
Returns the number of elements in the vector, 4. | |
UnalignedLVecBase4f | operator= (VBase4 const copy) |
UnalignedLVecBase4f | operator= (UnalignedLVecBase4f const copy) |
operator[] (int i) | |
float | operator[] (int i) |
set (float x, float y, float z, float w) | |
setitem (int i, float v) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static int | size () |
Returns 4: the number of components of a LVecBase4. |
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.
UnalignedLVecBase4f | ( | VBase4 const | copy | ) |
UnalignedLVecBase4f | ( | UnalignedLVecBase4f const | copy | ) |
UnalignedLVecBase4f | ( | float | x, |
float | y, | ||
float | z, | ||
float | w | ||
) |
static TypeHandle getClassType | ( | ) | [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.
UnalignedLVecBase4f operator= | ( | VBase4 const | copy | ) |
UnalignedLVecBase4f operator= | ( | UnalignedLVecBase4f const | copy | ) |
operator[] | ( | int | i | ) |
float operator[] | ( | int | i | ) |
set | ( | float | x, |
float | y, | ||
float | z, | ||
float | w | ||
) |