LVecBase4i

from panda3d.core import LVecBase4i
class LVecBase4i

Bases: DTOOL_SUPER_BASE

This is the base class for all three-component vectors and points.

Inheritance diagram

Inheritance diagram of LVecBase4i

Ceil()

C++ Interface: __ceil__(const LVecBase4i self)

Floor()

C++ Interface: __floor__(const LVecBase4i self)

Round()

C++ Interface: __round__(const LVecBase4i self)

__init__(*args, **kwargs)
addHash()

C++ Interface: add_hash(LVecBase4i self, int hash)

/**
  • Adds the vector into the running hash.

*/

addToCell()

C++ Interface: add_to_cell(const LVecBase4i self, int i, int value)

// These next functions add to an existing value. i.e. // foo.set_x(foo.get_x() + value) These are useful to reduce overhead in // scripting languages:

/**

*/

addW()

C++ Interface: add_w(const LVecBase4i self, int value)

/**

*/

addX()

C++ Interface: add_x(const LVecBase4i self, int value)

/**

*/

addY()

C++ Interface: add_y(const LVecBase4i self, int value)

/**

*/

addZ()

C++ Interface: add_z(const LVecBase4i self, int value)

/**

*/

add_hash()

C++ Interface: add_hash(LVecBase4i self, int hash)

/**
  • Adds the vector into the running hash.

*/

add_to_cell()

C++ Interface: add_to_cell(const LVecBase4i self, int i, int value)

// These next functions add to an existing value. i.e. // foo.set_x(foo.get_x() + value) These are useful to reduce overhead in // scripting languages:

/**

*/

add_w()

C++ Interface: add_w(const LVecBase4i self, int value)

/**

*/

add_x()

C++ Interface: add_x(const LVecBase4i self, int value)

/**

*/

add_y()

C++ Interface: add_y(const LVecBase4i self, int value)

/**

*/

add_z()

C++ Interface: add_z(const LVecBase4i self, int value)

/**

*/

almostEqual()

C++ Interface: almost_equal(LVecBase4i self, const LVecBase4i other) almost_equal(LVecBase4i self, const LVecBase4i other, int threshold)

/**
  • Returns true if two vectors are memberwise equal within a specified

  • tolerance.

*/

/**
  • Returns true if two vectors are memberwise equal within a default tolerance

  • based on the numeric type.

*/

almost_equal()

C++ Interface: almost_equal(LVecBase4i self, const LVecBase4i other) almost_equal(LVecBase4i self, const LVecBase4i other, int threshold)

/**
  • Returns true if two vectors are memberwise equal within a specified

  • tolerance.

*/

/**
  • Returns true if two vectors are memberwise equal within a default tolerance

  • based on the numeric type.

*/

assign()

C++ Interface: assign(const LVecBase4i self, const LVecBase4i copy) assign(const LVecBase4i self, int fill_value)

compareTo()

C++ Interface: compare_to(LVecBase4i self, const LVecBase4i other)

/**
  • This flavor of compare_to uses a default threshold value based on the

  • numeric type.

*/

compare_to()

C++ Interface: compare_to(LVecBase4i self, const LVecBase4i other)

/**
  • This flavor of compare_to uses a default threshold value based on the

  • numeric type.

*/

componentwiseMult()

C++ Interface: componentwise_mult(const LVecBase4i self, const LVecBase4i other)

/**

*/

componentwise_mult()

C++ Interface: componentwise_mult(const LVecBase4i self, const LVecBase4i other)

/**

*/

dot()

C++ Interface: dot(LVecBase4i self, const LVecBase4i other)

/**

*/

fill()

C++ Interface: fill(const LVecBase4i self, int fill_value)

/**
  • Sets each element of the vector to the indicated fill_value. This is

  • particularly useful for initializing to zero.

*/

fmax()

C++ Interface: fmax(LVecBase4i self, const LVecBase4i other)

/**

*/

fmin()

C++ Interface: fmin(LVecBase4i self, const LVecBase4i other)

/**

*/

getCell()

C++ Interface: get_cell(LVecBase4i self, int i)

/**

*/

getClassType()

C++ Interface: get_class_type()

getHash()

C++ Interface: get_hash(LVecBase4i self)

/**
  • Returns a suitable hash for phash_map.

*/

getNumComponents()

C++ Interface: get_num_components()

getW()

C++ Interface: get_w(LVecBase4i self)

/**

*/

getX()

C++ Interface: get_x(LVecBase4i self)

/**

*/

getXy()

C++ Interface: get_xy(LVecBase4i self)

/**
  • Returns the x and y component of this vector

*/

getXyz()

C++ Interface: get_xyz(LVecBase4i self)

/**
  • Returns the x, y and z component of this vector

*/

getY()

C++ Interface: get_y(LVecBase4i self)

/**

*/

getZ()

C++ Interface: get_z(LVecBase4i self)

/**

*/

get_cell()

C++ Interface: get_cell(LVecBase4i self, int i)

/**

*/

get_class_type()

C++ Interface: get_class_type()

get_hash()

C++ Interface: get_hash(LVecBase4i self)

/**
  • Returns a suitable hash for phash_map.

*/

get_num_components()

C++ Interface: get_num_components()

get_w()

C++ Interface: get_w(LVecBase4i self)

/**

*/

get_x()

C++ Interface: get_x(LVecBase4i self)

/**

*/

get_xy()

C++ Interface: get_xy(LVecBase4i self)

/**
  • Returns the x and y component of this vector

*/

get_xyz()

C++ Interface: get_xyz(LVecBase4i self)

/**
  • Returns the x, y and z component of this vector

*/

get_y()

C++ Interface: get_y(LVecBase4i self)

/**

*/

get_z()

C++ Interface: get_z(LVecBase4i self)

/**

*/

isNan()

C++ Interface: is_nan(LVecBase4i self)

/**
  • Returns true if any component of the vector is not-a-number, false

  • otherwise.

*/

is_int = 1
is_nan()

C++ Interface: is_nan(LVecBase4i self)

/**
  • Returns true if any component of the vector is not-a-number, false

  • otherwise.

*/

lengthSquared()

C++ Interface: length_squared(LVecBase4i self)

/**
  • Returns the square of the vector’s length, cheap and easy.

*/

length_squared()

C++ Interface: length_squared(LVecBase4i self)

/**
  • Returns the square of the vector’s length, cheap and easy.

*/

num_components = 4
output()

C++ Interface: output(LVecBase4i self, ostream out)

/**

*/

readDatagram()

C++ Interface: read_datagram(const LVecBase4i self, DatagramIterator source)

/**
  • Reads the vector from the Datagram using get_stdfloat().

*/

readDatagramFixed()

C++ Interface: read_datagram_fixed(const LVecBase4i self, DatagramIterator source)

/**
  • Reads the vector from the Datagram using get_float32() or get_float64().

  • See write_datagram_fixed().

*/

read_datagram()

C++ Interface: read_datagram(const LVecBase4i self, DatagramIterator source)

/**
  • Reads the vector from the Datagram using get_stdfloat().

*/

read_datagram_fixed()

C++ Interface: read_datagram_fixed(const LVecBase4i self, DatagramIterator source)

/**
  • Reads the vector from the Datagram using get_float32() or get_float64().

  • See write_datagram_fixed().

*/

set()

C++ Interface: set(const LVecBase4i self, int x, int y, int z, int w)

/**

*/

setCell()

C++ Interface: set_cell(const LVecBase4i self, int i, int value)

/**

*/

setW()

C++ Interface: set_w(const LVecBase4i self, int value)

/**

*/

setX()

C++ Interface: set_x(const LVecBase4i self, int value)

/**

*/

setY()

C++ Interface: set_y(const LVecBase4i self, int value)

/**

*/

setZ()

C++ Interface: set_z(const LVecBase4i self, int value)

/**

*/

set_cell()

C++ Interface: set_cell(const LVecBase4i self, int i, int value)

/**

*/

set_w()

C++ Interface: set_w(const LVecBase4i self, int value)

/**

*/

set_x()

C++ Interface: set_x(const LVecBase4i self, int value)

/**

*/

set_y()

C++ Interface: set_y(const LVecBase4i self, int value)

/**

*/

set_z()

C++ Interface: set_z(const LVecBase4i self, int value)

/**

*/

unitW()

C++ Interface: unit_w()

/**
  • Returns a unit W vector.

*/

unitX()

C++ Interface: unit_x()

/**
  • Returns a unit X vector.

*/

unitY()

C++ Interface: unit_y()

/**
  • Returns a unit Y vector.

*/

unitZ()

C++ Interface: unit_z()

/**
  • Returns a unit Z vector.

*/

unit_w()

C++ Interface: unit_w()

/**
  • Returns a unit W vector.

*/

unit_x()

C++ Interface: unit_x()

/**
  • Returns a unit X vector.

*/

unit_y()

C++ Interface: unit_y()

/**
  • Returns a unit Y vector.

*/

unit_z()

C++ Interface: unit_z()

/**
  • Returns a unit Z vector.

*/

writeDatagram()

C++ Interface: write_datagram(LVecBase4i self, Datagram destination)

/**
  • Writes the vector to the Datagram using add_stdfloat(). This is

  • appropriate when you want to write the vector using the standard width

  • setting, especially when you are writing a bam file.

*/

writeDatagramFixed()

C++ Interface: write_datagram_fixed(LVecBase4i self, 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(). This is appropriate when you want to

  • write a fixed-width value to the datagram, especially when you are not

  • writing a bam file.

*/

write_datagram()

C++ Interface: write_datagram(LVecBase4i self, Datagram destination)

/**
  • Writes the vector to the Datagram using add_stdfloat(). This is

  • appropriate when you want to write the vector using the standard width

  • setting, especially when you are writing a bam file.

*/

write_datagram_fixed()

C++ Interface: write_datagram_fixed(LVecBase4i self, 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(). This is appropriate when you want to

  • write a fixed-width value to the datagram, especially when you are not

  • writing a bam file.

*/

x
xy
xyz
y
z
zero()

C++ Interface: zero()

/**
  • Returns a zero-length vector.

*/