This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).
More...
|
object | __getattr__ (str attr_name) |
|
| __init__ () |
|
| __init__ (const LPoint3d) |
|
| __init__ (const LVecBase2d copy, double z) |
|
| __init__ (const LVecBase3d copy) |
|
| __init__ (double fill_value) |
|
| __init__ (double x, double y, double z) |
|
str | __repr__ () |
|
int | __setattr__ (str attr_name, object assign) |
|
LPoint3d | cross (const LVecBase3d other) |
|
LPoint2d | getXy () |
| Returns a 2-component vector that shares just the first two components of this vector. More...
|
|
LPoint2d | getXz () |
| Returns a 2-component vector that shares just the first and last components of this vector. More...
|
|
LPoint2d | getYz () |
| Returns a 2-component vector that shares just the last two components of this vector. More...
|
|
LPoint3d | normalized () |
| Normalizes the vector and returns the normalized vector as a copy. More...
|
|
LPoint3d | operator* (double scalar) |
|
LVecBase3d | operator+ (const LVecBase3d other) |
|
LPoint3d | operator+ (const LVector3d other) |
|
LPoint3d | operator- () |
|
LVector3d | operator- (const LPoint3d other) |
|
LVecBase3d | operator- (const LVecBase3d other) |
|
LPoint3d | operator- (const LVector3d other) |
|
LPoint3d | operator/ (double scalar) |
|
LPoint3d | project (const LVecBase3d onto) |
| Returns a new vector representing the projection of this vector onto another one. More...
|
|
Public Member Functions inherited from LVecBase3d |
object | __ceil__ () |
|
object | __floor__ () |
|
object | __floordiv__ (double scalar) |
|
object | __getattr__ (str attr_name) |
|
object | __ifloordiv__ (double scalar) |
|
| __init__ () |
|
| __init__ (const LVecBase2d copy, double z) |
|
| __init__ (const LVecBase3d) |
|
| __init__ (double fill_value) |
|
| __init__ (double x, double y, double z) |
|
object | __ipow__ (double exponent) |
|
object | __pow__ (double 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. More...
|
|
int | addHash (int hash, double threshold) |
| Adds the vector into the running hash. More...
|
|
| addToCell (int i, double value) |
|
| addX (double value) |
|
| addY (double value) |
|
| addZ (double value) |
|
bool | almostEqual (const LVecBase3d other) |
| Returns true if two vectors are memberwise equal within a default tolerance based on the numeric type. More...
|
|
bool | almostEqual (const LVecBase3d other, double threshold) |
| Returns true if two vectors are memberwise equal within a specified tolerance. More...
|
|
int | compareTo (const LVecBase3d other) |
| This flavor of compare_to uses a default threshold value based on the numeric type. More...
|
|
int | compareTo (const LVecBase3d other, double threshold) |
| Sorts vectors lexicographically, componentwise. More...
|
|
| componentwiseMult (const LVecBase3d other) |
|
LVecBase3d | cross (const LVecBase3d other) |
|
| crossInto (const LVecBase3d other) |
|
double | dot (const LVecBase3d other) |
|
| fill (double fill_value) |
| Sets each element of the vector to the indicated fill_value. More...
|
|
LVecBase3d | fmax (const LVecBase3d other) |
|
LVecBase3d | fmin (const LVecBase3d other) |
|
| generateHash (ChecksumHashGenerator hashgen) |
| Adds the vector to the indicated hash generator. More...
|
|
| generateHash (ChecksumHashGenerator hashgen, double threshold) |
| Adds the vector to the indicated hash generator. More...
|
|
double | getCell (int i) |
|
| getData () |
| Returns the address of the first of the three data elements in the vector. More...
|
|
int | getHash () |
| Returns a suitable hash for phash_map. More...
|
|
int | getHash (double threshold) |
| Returns a suitable hash for phash_map. More...
|
|
LVecBase3d | getStandardizedHpr () |
| Try to un-spin the hpr to a standard form. More...
|
|
double | getX () |
|
LVecBase2d | getXy () |
| Returns a 2-component vector that shares just the first two components of this vector. More...
|
|
LVecBase2d | getXz () |
| Returns a 2-component vector that shares just the first and last components of this vector. More...
|
|
double | getY () |
|
LVecBase2d | getYz () |
| Returns a 2-component vector that shares just the last two components of this vector. More...
|
|
double | getZ () |
|
bool | isNan () |
| Returns true if any component of the vector is not-a-number, false otherwise. More...
|
|
double | length () |
| Returns the length of the vector, by the Pythagorean theorem. More...
|
|
double | lengthSquared () |
| Returns the square of the vector's length, cheap and easy. More...
|
|
bool | normalize () |
| Normalizes the vector in place. More...
|
|
LVecBase3d | normalized () |
| Normalizes the vector and returns the normalized vector as a copy. More...
|
|
| operator new (int size) |
|
bool | operator!= (const LVecBase3d other) |
|
LVecBase3d | operator* (double scalar) |
|
LVecBase3d | operator*= (double scalar) |
|
LVecBase3d | operator+ (const LVecBase3d other) |
|
LVecBase3d | operator+= (const LVecBase3d other) |
|
LVecBase3d | operator- () |
|
LVecBase3d | operator- (const LVecBase3d other) |
|
LVecBase3d | operator-= (const LVecBase3d other) |
|
LVecBase3d | operator/ (double scalar) |
|
LVecBase3d | operator/= (double scalar) |
|
bool | operator< (const LVecBase3d other) |
|
LVecBase3d | operator= (const LVecBase3d copy) |
|
LVecBase3d | operator= (double fill_value) |
|
bool | operator== (const LVecBase3d other) |
|
double | operator[] (int i) |
|
| operator[] (int i, double assign_val) |
|
| output (Ostream out) |
|
LVecBase3d | project (const LVecBase3d onto) |
| Returns a new vector representing the projection of this vector onto another one. More...
|
|
| 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 (double x, double y, double z) |
|
| setCell (int i, double value) |
|
| setX (double value) |
|
| setY (double value) |
|
| setZ (double 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...
|
|
This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).
Some of the methods are slightly different between LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.