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

This is an "unaligned" LVecBase4. More...

Public Types

enum  { num_components = 4, is_int = 0 }
 

Public Member Functions

 __init__ ()
 
 __init__ (const LVecBase4d copy)
 
 __init__ (const UnalignedLVecBase4d)
 
 __init__ (double fill_value)
 
 __init__ (double x, double y, double z, double w)
 
 fill (double fill_value)
 Sets each element of the vector to the indicated fill_value. More...
 
 getData ()
 Returns the address of the first of the three data elements in the vector. More...
 
bool operator != (const UnalignedLVecBase4d other)
 
 operator [] (int i, double assign_val)
 
double operator [] (int i)
 
bool operator== (const UnalignedLVecBase4d other)
 
 set (double x, double y, double z, double w)
 

Static Public Member Functions

static TypeHandle getClassType ()
 
static int getNumComponents ()
 
static int size ()
 

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/5]

__init__ ( )

◆ __init__() [2/5]

__init__ ( const LVecBase4d  copy)

◆ __init__() [3/5]

__init__ ( const  UnalignedLVecBase4d)

◆ __init__() [4/5]

__init__ ( double  fill_value)

◆ __init__() [5/5]

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

◆ fill()

fill ( double  fill_value)

Sets each element of the vector to the indicated fill_value.

This is particularly useful for initializing to zero.

◆ 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()

static int getNumComponents ( )
static

◆ operator !=()

bool operator != ( const UnalignedLVecBase4d  other)

◆ operator []() [1/2]

operator [] ( int  i,
double  assign_val 
)

◆ operator []() [2/2]

double operator [] ( int  i)

◆ operator==()

bool operator== ( const UnalignedLVecBase4d  other)

◆ set()

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

◆ size()

static int size ( )
static