|
object | __getattr__ (str attr_name) |
|
| __init__ () |
|
| __init__ (const LVecBase3f copy, float w) |
|
| __init__ (const LVecBase4f copy) |
|
| __init__ (const LVector4f) |
|
| __init__ (float fill_value) |
|
| __init__ (float x, float y, float z, float w) |
|
str | __repr__ () |
|
int | __setattr__ (str attr_name, object assign) |
|
LVector2f | getXy () |
| Returns the x and y component of this vector.
|
|
LVector3f | getXyz () |
| Returns the x, y and z component of this vector.
|
|
LVector4f | normalized () |
| Normalizes the vector and returns the normalized vector as a copy.
|
|
LVector4f | operator* (float scalar) |
|
LVecBase4f | operator+ (const LVecBase4f other) |
|
LVector4f | operator+ (const LVector4f other) |
|
LVector4f | operator- () |
|
LVecBase4f | operator- (const LVecBase4f other) |
|
LVector4f | operator- (const LVector4f other) |
|
LVector4f | operator/ (float scalar) |
|
LVector4f | project (const LVecBase4f onto) |
| Returns a new vector representing the projection of this vector onto another one.
|
|
Public Member Functions inherited from LVecBase4f |
object | __ceil__ () |
|
object | __floor__ () |
|
object | __floordiv__ (float scalar) |
|
object | __getattr__ (str attr_name) |
|
object | __ifloordiv__ (float scalar) |
|
| __init__ () |
|
| __init__ (const LPoint3f point) |
| Constructs an LVecBase4 from an LPoint3.
|
|
| __init__ (const LVecBase3f copy, float w) |
|
| __init__ (const LVecBase4f) |
|
| __init__ (const LVector3f vector) |
| Constructs an LVecBase4 from an LVector3.
|
|
| __init__ (const UnalignedLVecBase4f copy) |
|
| __init__ (float fill_value) |
|
| __init__ (float x, float y, float z, float w) |
|
object | __ipow__ (float exponent) |
|
object | __pow__ (float exponent) |
|
object | __reduce__ () |
|
str | __repr__ () |
|
object | __round__ () |
|
int | __setattr__ (str attr_name, object assign) |
|
int | addHash (int hash) |
| Adds the vector into the running hash.
|
|
int | addHash (int hash, float threshold) |
| Adds the vector into the running hash.
|
|
| addToCell (int i, float value) |
|
| addW (float value) |
|
| addX (float value) |
|
| addY (float value) |
|
| addZ (float value) |
|
bool | almostEqual (const LVecBase4f other) |
| Returns true if two vectors are memberwise equal within a default tolerance based on the numeric type.
|
|
bool | almostEqual (const LVecBase4f other, float threshold) |
| Returns true if two vectors are memberwise equal within a specified tolerance.
|
|
int | compareTo (const LVecBase4f other) |
| This flavor of compare_to uses a default threshold value based on the numeric type.
|
|
int | compareTo (const LVecBase4f other, float threshold) |
| Sorts vectors lexicographically, componentwise.
|
|
| componentwiseMult (const LVecBase4f other) |
|
float | dot (const LVecBase4f other) |
|
| fill (float fill_value) |
| Sets each element of the vector to the indicated fill_value.
|
|
LVecBase4f | fmax (const LVecBase4f other) |
|
LVecBase4f | fmin (const LVecBase4f other) |
|
| generateHash (ChecksumHashGenerator hashgen) |
| Adds the vector to the indicated hash generator.
|
|
| generateHash (ChecksumHashGenerator hashgen, float threshold) |
| Adds the vector to the indicated hash generator.
|
|
float | getCell (int i) |
|
| getData () |
| Returns the address of the first of the four data elements in the vector.
|
|
int | getHash () |
| Returns a suitable hash for phash_map.
|
|
int | getHash (float threshold) |
| Returns a suitable hash for phash_map.
|
|
float | getW () |
|
float | getX () |
|
LVecBase2f | getXy () |
| Returns the x and y component of this vector.
|
|
LVecBase3f | getXyz () |
| Returns the x, y and z component of this vector.
|
|
float | getY () |
|
float | getZ () |
|
bool | isNan () |
| Returns true if any component of the vector is not-a-number, false otherwise.
|
|
float | length () |
| Returns the length of the vector, by the Pythagorean theorem.
|
|
float | lengthSquared () |
| Returns the square of the vector's length, cheap and easy.
|
|
bool | normalize () |
| Normalizes the vector in place.
|
|
LVecBase4f | normalized () |
| Normalizes the vector and returns the normalized vector as a copy.
|
|
| operator new (int size) |
|
bool | operator!= (const LVecBase4f other) |
|
LVecBase4f | operator* (float scalar) |
|
LVecBase4f | operator*= (float scalar) |
|
LVecBase4f | operator+ (const LVecBase4f other) |
|
LVecBase4f | operator+= (const LVecBase4f other) |
|
LVecBase4f | operator- () |
|
LVecBase4f | operator- (const LVecBase4f other) |
|
LVecBase4f | operator-= (const LVecBase4f other) |
|
LVecBase4f | operator/ (float scalar) |
|
LVecBase4f | operator/= (float scalar) |
|
bool | operator< (const LVecBase4f other) |
|
LVecBase4f | operator= (const LVecBase4f copy) |
|
LVecBase4f | operator= (float fill_value) |
|
bool | operator== (const LVecBase4f other) |
|
float | operator[] (int i) |
|
| operator[] (int i, float assign_val) |
|
| output (Ostream out) |
|
LVecBase4f | project (const LVecBase4f onto) |
| Returns a new vector representing the projection of this vector onto another one.
|
|
| readDatagram (DatagramIterator source) |
| Reads the vector from the Datagram using get_stdfloat().
|
|
| readDatagramFixed (DatagramIterator source) |
| Reads the vector from the Datagram using get_float32() or get_float64().
|
|
| set (float x, float y, float z, float w) |
|
| setCell (int i, float value) |
|
| setW (float value) |
|
| setX (float value) |
|
| setY (float value) |
|
| setZ (float value) |
|
| writeDatagram (Datagram destination) |
| Writes the vector to the Datagram using add_stdfloat().
|
|
| 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().
|
|
This is a four-component vector distance.