LVecBase4i

class LVecBase4i

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

Inheritance diagram

digraph inheritance5c14de25e8 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "LVecBase4i" [URL="acron.core.LVecBase4i.html#acron.core.LVecBase4i",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "LVecBase4i" [arrowsize=0.75,style=""]; }
LVecBase4i.__add__()
LVecBase4i.__ceil__()
LVecBase4i.__div__()
LVecBase4i.__eq__()
LVecBase4i.__floor__()
LVecBase4i.__floordiv__()
LVecBase4i.__getattr__()
LVecBase4i.__getbuffer__()
LVecBase4i.__getitem__()
LVecBase4i.__iadd__()
LVecBase4i.__idiv__()
LVecBase4i.__ifloordiv__()
LVecBase4i.__imul__()
LVecBase4i.__init__()

Constructs an LVecBase4 from an LPoint3. The w coordinate is set to 1.0.

Constructs an LVecBase4 from an LVector3. The w coordinate is set to 0.0.

LVecBase4i.__ipow__()
LVecBase4i.__isub__()
LVecBase4i.__lt__()
LVecBase4i.__mul__()
LVecBase4i.__ne__()
LVecBase4i.__pow__()
LVecBase4i.__reduce__()
LVecBase4i.__repr__()
LVecBase4i.__rmul__()
LVecBase4i.__round__()
LVecBase4i.__setattr__()
LVecBase4i.__sub__()
LVecBase4i.__sub__()
LVecBase4i.add_hash()

Adds the vector into the running hash.

LVecBase4i.add_to_cell()

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:

LVecBase4i.add_w()
LVecBase4i.add_x()
LVecBase4i.add_y()
LVecBase4i.add_z()
LVecBase4i.almost_equal()

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.

LVecBase4i.assign()
LVecBase4i.compare_to()

This flavor of compare_to uses a default threshold value based on the numeric type.

LVecBase4i.componentwise_mult()
LVecBase4i.dot()
static LVecBase4i.extract_data()
LVecBase4i.fill()

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

LVecBase4i.fmax()
LVecBase4i.fmin()
LVecBase4i.generate_hash()

Adds the vector to the indicated hash generator.

LVecBase4i.get_cell()
static LVecBase4i.get_class_type()
static LVecBase4i.get_data()

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

LVecBase4i.get_hash()

Returns a suitable hash for phash_map.

static LVecBase4i.get_num_components()
LVecBase4i.get_w()
LVecBase4i.get_x()
LVecBase4i.get_xy()

Returns the x and y component of this vector

LVecBase4i.get_xyz()

Returns the x, y and z component of this vector

LVecBase4i.get_y()
LVecBase4i.get_z()
LVecBase4i.is_nan()

Returns true if any component of the vector is not-a-number, false otherwise.

LVecBase4i.length_squared()

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

static LVecBase4i.operator_delete()

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

static LVecBase4i.operator_delete()

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

static LVecBase4i.operator_new()

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

static LVecBase4i.operator_new()

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

Don’t inherit from MemoryBase directly to work around GCC<10.1 bug.

LVecBase4i.output()
LVecBase4i.read_datagram()

Reads the vector from the Datagram using get_stdfloat().

LVecBase4i.read_datagram_fixed()

Reads the vector from the Datagram using get_float32() or get_float64(). See write_datagram_fixed().

LVecBase4i.set()
LVecBase4i.set_cell()
LVecBase4i.set_w()
LVecBase4i.set_x()
LVecBase4i.set_y()
LVecBase4i.set_z()
static LVecBase4i.size()
static LVecBase4i.unit_w()

Returns a unit W vector.

static LVecBase4i.unit_x()

Returns a unit X vector.

static LVecBase4i.unit_y()

Returns a unit Y vector.

static LVecBase4i.unit_z()

Returns a unit Z vector.

LVecBase4i.write_datagram()

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.

LVecBase4i.write_datagram_fixed()

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.

static LVecBase4i.zero()

Returns a zero-length vector.