Panda3D
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
LPoint4i Class Reference

This is a four-component point in space. More...

Inheritance diagram for LPoint4i:
LVecBase4i

Public Member Functions

object __getattr__ (str attr_name)
 
 __init__ ()
 
 __init__ (const LPoint4i)
 
 __init__ (const LVecBase3i copy, int w)
 
 __init__ (const LVecBase4i copy)
 
 __init__ (int fill_value)
 
 __init__ (int x, int y, int z, int w)
 
str __repr__ ()
 
int __setattr__ (str attr_name, object assign)
 
LPoint2i getXy ()
 Returns the x and y component of this vector. More...
 
LPoint3i getXyz ()
 Returns the x, y and z component of this vector. More...
 
LPoint4i operator * (int scalar)
 
LPoint4i operator - ()
 
LVector4i operator - (const LPoint4i other)
 
LVecBase4i operator - (const LVecBase4i other)
 
LPoint4i operator - (const LVector4i other)
 
LVecBase4i operator+ (const LVecBase4i other)
 
LPoint4i operator+ (const LVector4i other)
 
LPoint4i operator/ (int scalar)
 
- Public Member Functions inherited from LVecBase4i
object __getattr__ (str attr_name)
 
 __init__ ()
 
 __init__ (const LPoint3i point)
 Constructs an LVecBase4 from an LPoint3. More...
 
 __init__ (const LVecBase3i copy, int w)
 
 __init__ (const LVecBase4i)
 
 __init__ (const LVector3i vector)
 Constructs an LVecBase4 from an LVector3. More...
 
 __init__ (const UnalignedLVecBase4i copy)
 
 __init__ (int fill_value)
 
 __init__ (int x, int y, int z, int w)
 
object __ipow__ (int exponent)
 
LVecBase4i __pow__ (int exponent)
 
object __reduce__ ()
 
str __repr__ ()
 
int __setattr__ (str attr_name, object assign)
 
int addHash (int hash)
 Adds the vector into the running hash. More...
 
 addToCell (int i, int value)
 
 addW (int value)
 
 addX (int value)
 
 addY (int value)
 
 addZ (int value)
 
bool almostEqual (const LVecBase4i other)
 Returns true if two vectors are memberwise equal within a default tolerance based on the numeric type. More...
 
bool almostEqual (const LVecBase4i other, int threshold)
 Returns true if two vectors are memberwise equal within a specified tolerance. More...
 
int compareTo (const LVecBase4i other)
 This flavor of compare_to uses a default threshold value based on the numeric type. More...
 
 componentwiseMult (const LVecBase4i other)
 
int dot (const LVecBase4i other)
 
 fill (int fill_value)
 Sets each element of the vector to the indicated fill_value. More...
 
LVecBase4i fmax (const LVecBase4i other)
 
LVecBase4i fmin (const LVecBase4i other)
 
 generateHash (ChecksumHashGenerator hashgen)
 Adds the vector to the indicated hash generator. More...
 
int getCell (int i)
 
 getData ()
 Returns the address of the first of the four data elements in the vector. More...
 
int getHash ()
 Returns a suitable hash for phash_map. More...
 
int getW ()
 
int getX ()
 
LVecBase2i getXy ()
 Returns the x and y component of this vector. More...
 
LVecBase3i getXyz ()
 Returns the x, y and z component of this vector. More...
 
int getY ()
 
int getZ ()
 
bool isNan ()
 Returns true if any component of the vector is not-a-number, false otherwise. More...
 
int lengthSquared ()
 Returns the square of the vector's length, cheap and easy. More...
 
bool operator != (const LVecBase4i other)
 
LVecBase4i operator * (int scalar)
 
LVecBase4i operator *= (int scalar)
 
LVecBase4i operator - ()
 
LVecBase4i operator - (const LVecBase4i other)
 
LVecBase4i operator -= (const LVecBase4i other)
 
 operator [] (int i, int assign_val)
 
int operator [] (int i)
 
 operator new (int size)
 
LVecBase4i operator+ (const LVecBase4i other)
 
LVecBase4i operator+= (const LVecBase4i other)
 
LVecBase4i operator/ (int scalar)
 
LVecBase4i operator/= (int scalar)
 
bool operator< (const LVecBase4i other)
 
LVecBase4i operator= (const LVecBase4i copy)
 
LVecBase4i operator= (int fill_value)
 
bool operator== (const LVecBase4i other)
 
 output (Ostream out)
 
 readDatagram (DatagramIterator source)
 Reads the vector from the Datagram using get_stdfloat(). More...
 
 readDatagramFixed (DatagramIterator source)
 Reads the vector from the Datagram using get_float32() or get_float64(). More...
 
 set (int x, int y, int z, int w)
 
 setCell (int i, int value)
 
 setW (int value)
 
 setX (int value)
 
 setY (int value)
 
 setZ (int value)
 
 writeDatagram (Datagram destination)
 Writes the vector to the Datagram using add_stdfloat(). More...
 
 writeDatagramFixed (Datagram destination)
 Writes the vector to the Datagram using add_float32() or add_float64(), depending on the type of floats in the vector, regardless of the setting of Datagram::set_stdfloat_double(). More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
static const LPoint4i unitW ()
 Returns a unit W point. More...
 
static const LPoint4i unitX ()
 Returns a unit X point. More...
 
static const LPoint4i unitY ()
 Returns a unit Y point. More...
 
static const LPoint4i unitZ ()
 Returns a unit Z point. More...
 
static const LPoint4i zero ()
 Returns a zero-length point. More...
 
- Static Public Member Functions inherited from LVecBase4i
static TypeHandle getClassType ()
 
static int getNumComponents ()
 
static int size ()
 
static const LVecBase4i unitW ()
 Returns a unit W vector. More...
 
static const LVecBase4i unitX ()
 Returns a unit X vector. More...
 
static const LVecBase4i unitY ()
 Returns a unit Y vector. More...
 
static const LVecBase4i unitZ ()
 Returns a unit Z vector. More...
 
static const LVecBase4i zero ()
 Returns a zero-length vector. More...
 

Public Attributes

LPoint2i xy
 Returns the x and y component of this vector. More...
 
LPoint3i xyz
 Returns the x, y and z component of this vector. More...
 
- Public Attributes inherited from LVecBase4i
int x
 
LVecBase2i xy
 Returns the x and y component of this vector. More...
 
LVecBase3i xyz
 Returns the x, y and z component of this vector. More...
 
int y
 
int z
 

Additional Inherited Members

- Public Types inherited from LVecBase4i
enum  { num_components = 4, is_int = 1 }
 

Detailed Description

This is a four-component point in space.

Member Function Documentation

◆ __getattr__()

object __getattr__ ( str  attr_name)

◆ __init__() [1/6]

__init__ ( )

◆ __init__() [2/6]

__init__ ( const  LPoint4i)

◆ __init__() [3/6]

__init__ ( const LVecBase3i  copy,
int  w 
)

◆ __init__() [4/6]

__init__ ( const LVecBase4i  copy)

◆ __init__() [5/6]

__init__ ( int  fill_value)

◆ __init__() [6/6]

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

◆ __repr__()

str __repr__ ( )

◆ __setattr__()

int __setattr__ ( str  attr_name,
object  assign 
)

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getXy()

LPoint2i getXy ( )

Returns the x and y component of this vector.

◆ getXyz()

LPoint3i getXyz ( )

Returns the x, y and z component of this vector.

◆ operator *()

LPoint4i operator * ( int  scalar)

◆ operator -() [1/4]

LPoint4i operator - ( )

◆ operator -() [2/4]

LVector4i operator - ( const LPoint4i  other)

◆ operator -() [3/4]

LVecBase4i operator - ( const LVecBase4i  other)

◆ operator -() [4/4]

LPoint4i operator - ( const LVector4i  other)

◆ operator+() [1/2]

LVecBase4i operator+ ( const LVecBase4i  other)

◆ operator+() [2/2]

LPoint4i operator+ ( const LVector4i  other)

◆ operator/()

LPoint4i operator/ ( int  scalar)

◆ unitW()

static const LPoint4i unitW ( )
static

Returns a unit W point.

◆ unitX()

static const LPoint4i unitX ( )
static

Returns a unit X point.

◆ unitY()

static const LPoint4i unitY ( )
static

Returns a unit Y point.

◆ unitZ()

static const LPoint4i unitZ ( )
static

Returns a unit Z point.

◆ zero()

static const LPoint4i zero ( )
static

Returns a zero-length point.

Member Data Documentation

◆ xy

Returns the x and y component of this vector.

◆ xyz

LPoint3i xyz

Returns the x, y and z component of this vector.