LVecBase3i

class LVecBase3i

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

Inheritance diagram

digraph inheritancee603c58fc9 { 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=""]; "LVecBase3i" [URL="acron.core.LVecBase3i.html#acron.core.LVecBase3i",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" -> "LVecBase3i" [arrowsize=0.75,style=""]; }
LVecBase3i.__add__()
LVecBase3i.__ceil__()
LVecBase3i.__div__()
LVecBase3i.__eq__()
LVecBase3i.__floor__()
LVecBase3i.__floordiv__()
LVecBase3i.__getattr__()
LVecBase3i.__getbuffer__()
LVecBase3i.__getitem__()
LVecBase3i.__iadd__()
LVecBase3i.__idiv__()
LVecBase3i.__ifloordiv__()
LVecBase3i.__imul__()
LVecBase3i.__init__()
LVecBase3i.__ipow__()
LVecBase3i.__isub__()
LVecBase3i.__lt__()
LVecBase3i.__mul__()
LVecBase3i.__ne__()
LVecBase3i.__pow__()
LVecBase3i.__reduce__()
LVecBase3i.__repr__()
LVecBase3i.__rmul__()
LVecBase3i.__round__()
LVecBase3i.__setattr__()
LVecBase3i.__sub__()
LVecBase3i.__sub__()
LVecBase3i.add_hash()

Adds the vector into the running hash.

LVecBase3i.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:

LVecBase3i.add_x()
LVecBase3i.add_y()
LVecBase3i.add_z()
LVecBase3i.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.

LVecBase3i.assign()
LVecBase3i.compare_to()

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

LVecBase3i.componentwise_mult()
LVecBase3i.cross()
LVecBase3i.cross_into()
LVecBase3i.dot()
LVecBase3i.fill()

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

LVecBase3i.fmax()
LVecBase3i.fmin()
LVecBase3i.generate_hash()

Adds the vector to the indicated hash generator.

LVecBase3i.get_cell()
static LVecBase3i.get_class_type()
static LVecBase3i.get_data()

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

LVecBase3i.get_hash()

Returns a suitable hash for phash_map.

static LVecBase3i.get_num_components()
LVecBase3i.get_x()
LVecBase3i.get_xy()

Returns a 2-component vector that shares just the first two components of this vector.

LVecBase3i.get_xz()

Returns a 2-component vector that shares just the first and last components of this vector.

LVecBase3i.get_y()
LVecBase3i.get_yz()

Returns a 2-component vector that shares just the last two components of this vector.

LVecBase3i.get_z()
LVecBase3i.is_nan()

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

LVecBase3i.length_squared()

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

static LVecBase3i.operator_delete()
static LVecBase3i.operator_delete()
static LVecBase3i.operator_new()
static LVecBase3i.operator_new()
LVecBase3i.output()
LVecBase3i.read_datagram()

Reads the vector from the Datagram using get_stdfloat().

LVecBase3i.read_datagram_fixed()

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

LVecBase3i.set()
LVecBase3i.set_cell()
LVecBase3i.set_x()
LVecBase3i.set_y()
LVecBase3i.set_z()
static LVecBase3i.size()
static LVecBase3i.unit_x()

Returns a unit X vector.

static LVecBase3i.unit_y()

Returns a unit Y vector.

static LVecBase3i.unit_z()

Returns a unit Z vector.

static LVecBase3i.validate_ptr()
LVecBase3i.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.

LVecBase3i.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 LVecBase3i.zero()

Returns a zero-length vector.