Panda3D
|
This is an "unaligned" LVecBase4. More...
#include "lvecBase4.h"
Public Member Functions | |
UnalignedLVecBase4f (const LVecBase4f ©) | |
UnalignedLVecBase4f (const UnalignedLVecBase4f ©) | |
UnalignedLVecBase4f (float x, float y, float z, float w) | |
const float * | get_data () const |
Returns the address of the first of the three data elements in the vector. | |
int | get_num_components () const |
Returns the number of elements in the vector, 4. | |
UnalignedLVecBase4f & | operator= (const LVecBase4f ©) |
UnalignedLVecBase4f & | operator= (const UnalignedLVecBase4f ©) |
float | operator[] (int i) const |
float & | operator[] (int i) |
void | set (float x, float y, float z, float w) |
typedef | UNALIGNED_LINMATH_MATRIX (float, 1, 4) UVector4 |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static int | size () |
Returns 4: the number of components of a LVecBase4. | |
Public Attributes | |
UVector4 | _v |
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.
Definition at line 263 of file lvecBase4.h.
const float * UnalignedLVecBase4f::get_data | ( | ) | const [inline] |
Returns the address of the first of the three data elements in the vector.
The remaining elements occupy the next positions consecutively in memory.
Definition at line 1392 of file lvecBase4.h.
int UnalignedLVecBase4f::get_num_components | ( | ) | const [inline] |
Returns the number of elements in the vector, 4.
Definition at line 1402 of file lvecBase4.h.
int UnalignedLVecBase4f::size | ( | ) | [inline, static] |
Returns 4: the number of components of a LVecBase4.
Definition at line 1380 of file lvecBase4.h.