from panda3d.core import UnalignedLVecBase4f
class UnalignedLVecBase4f

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.

Inheritance diagram

Inheritance diagram of UnalignedLVecBase4f

__eq__(other: UnalignedLVecBase4f)bool
__getitem__(i: int, assign_val: float)None
__getitem__(i: int)float
__init__(copy: LVecBase4f)
__init__(param0: UnalignedLVecBase4f)
__init__(fill_value: float)
__init__(x: float, y: float, z: float, w: float)
__ne__(other: UnalignedLVecBase4f)bool
fill(fill_value: float)None

Sets each element of the vector to the indicated fill_value. This is particularly useful for initializing to zero.

static getClassType()TypeHandle

Returns the address of the first of the three data elements in the vector. The remaining elements occupy the next positions consecutively in memory.

static getNumComponents()int
set(x: float, y: float, z: float, w: float)None
static size()int