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

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 LVecBase4f copy)
 
 __init__ (const UnalignedLVecBase4f copy)
 
 __init__ (float x, float y, float z, float 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...
 
UnalignedLVecBase4f operator= (const LVecBase4f copy)
 
UnalignedLVecBase4f operator= (const UnalignedLVecBase4f copy)
 
 operator[] (int i, float assign_val)
 
float operator[] (int i)
 
 set (float x, float y, float z, float w)
 

Static Public Member Functions

static TypeHandle getClassType ()
 
static int size ()
 Returns 4: the number of components of a LVecBase4. More...
 

Detailed Description

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.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
num_components 
is_int 

Member Function Documentation

◆ __init__() [1/4]

__init__ ( )

◆ __init__() [2/4]

__init__ ( const LVecBase4f  copy)

◆ __init__() [3/4]

__init__ ( const UnalignedLVecBase4f  copy)

◆ __init__() [4/4]

__init__ ( float  x,
float  y,
float  z,
float  w 
)

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getData()

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.

◆ getNumComponents()

int getNumComponents ( )

Returns the number of elements in the vector, 4.

◆ operator=() [1/2]

UnalignedLVecBase4f operator= ( const LVecBase4f  copy)

◆ operator=() [2/2]

UnalignedLVecBase4f operator= ( const UnalignedLVecBase4f  copy)

◆ operator[]() [1/2]

operator[] ( int  i,
float  assign_val 
)

◆ operator[]() [2/2]

float operator[] ( int  i)

◆ set()

set ( float  x,
float  y,
float  z,
float  w 
)

◆ size()

static int size ( )
static

Returns 4: the number of components of a LVecBase4.