|
object | __getattr__ (str attr_name) |
|
| __init__ () |
|
| __init__ (const LVecBase2d copy) |
| Constructs a new LVector2 from a LVecBase2. More...
|
|
| __init__ (const LVector2d) |
|
| __init__ (double fill_value) |
| Constructs a new LVector2 with all components set to the fill value. More...
|
|
| __init__ (double x, double y) |
|
str | __repr__ () |
|
int | __setattr__ (str attr_name, object assign) |
|
LVector2d | normalized () |
| Normalizes the vector and returns the normalized vector as a copy. More...
|
|
LVector2d | operator* (double scalar) |
|
LVecBase2d | operator+ (const LVecBase2d other) |
|
LVector2d | operator+ (const LVector2d other) |
|
LVector2d | operator- () |
|
LVecBase2d | operator- (const LVecBase2d other) |
|
LVector2d | operator- (const LVector2d other) |
|
LVector2d | operator/ (double scalar) |
|
LVector2d | project (const LVecBase2d onto) |
| Returns a new vector representing the projection of this vector onto another one. More...
|
|
double | signedAngleDeg (const LVector2d other) |
| returns the signed angled between two vectors. More...
|
|
double | signedAngleRad (const LVector2d other) |
| returns the signed angled between two vectors. More...
|
|
Public Member Functions inherited from LVecBase2d |
object | __getattr__ (str attr_name) |
|
| __init__ () |
|
| __init__ (const LVecBase2d) |
|
| __init__ (double fill_value) |
|
| __init__ (double x, double y) |
|
object | __ipow__ (double exponent) |
|
LVecBase2d | __pow__ (double exponent) |
|
object | __reduce__ () |
|
str | __repr__ () |
|
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) |
|
bool | almostEqual (const LVecBase2d other) |
| Returns true if two vectors are memberwise equal within a default tolerance based on the numeric type. More...
|
|
bool | almostEqual (const LVecBase2d other, double threshold) |
| Returns true if two vectors are memberwise equal within a specified tolerance. More...
|
|
int | compareTo (const LVecBase2d other) |
| This flavor of compare_to uses a default threshold value based on the numeric type. More...
|
|
int | compareTo (const LVecBase2d other, double threshold) |
| Sorts vectors lexicographically, componentwise. More...
|
|
| componentwiseMult (const LVecBase2d other) |
|
double | dot (const LVecBase2d other) |
|
| fill (double fill_value) |
| Sets each element of the vector to the indicated fill_value. More...
|
|
LVecBase2d | fmax (const LVecBase2d other) |
|
LVecBase2d | fmin (const LVecBase2d 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 two 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...
|
|
double | getX () |
|
double | getY () |
|
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...
|
|
LVecBase2d | normalized () |
| Normalizes the vector and returns the normalized vector as a copy. More...
|
|
| operator new (int size) |
|
bool | operator!= (const LVecBase2d other) |
|
LVecBase2d | operator* (double scalar) |
|
LVecBase2d | operator*= (double scalar) |
|
LVecBase2d | operator+ (const LVecBase2d other) |
|
LVecBase2d | operator+= (const LVecBase2d other) |
|
LVecBase2d | operator- () |
|
LVecBase2d | operator- (const LVecBase2d other) |
|
LVecBase2d | operator-= (const LVecBase2d other) |
|
LVecBase2d | operator/ (double scalar) |
|
LVecBase2d | operator/= (double scalar) |
|
bool | operator< (const LVecBase2d other) |
|
LVecBase2d | operator= (const LVecBase2d copy) |
|
LVecBase2d | operator= (double fill_value) |
|
bool | operator== (const LVecBase2d other) |
|
double | operator[] (int i) |
|
| operator[] (int i, double assign_val) |
|
| output (Ostream out) |
|
LVecBase2d | project (const LVecBase2d 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) |
|
| setCell (int i, double value) |
|
| setX (double value) |
|
| setY (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 two-component vector offset.