This is a two-component vector offset. More...
Public Member Functions | |
Vec2D () | |
Vec2D (VBase2D const copy) | |
Vec2D (double fill_value) | |
Vec2D (double x, double y) | |
PyObject | getattr (string attr_name) |
Vec2D | operator* (double scalar) |
VBase2D | operator+ (VBase2D const other) |
Vec2D | operator+ (Vec2D const other) |
Vec2D | operator- () |
VBase2D | operator- (VBase2D const other) |
Vec2D | operator- (Vec2D const other) |
Vec2D | operator/ (double scalar) |
Vec2D | operator= (VBase2D const copy) |
Vec2D | operator= (double fill_value) |
Vec2D | project (VBase2D const onto) |
Returns a new vector representing the projection of this vector onto another one. | |
pythonRepr (ostream out, string class_name) | |
int | setattr (PyObject self, string attr_name, PyObject assign) |
double | signedAngleDeg (Vec2D const other) |
returns the signed angled between two vectors. | |
double | signedAngleRad (Vec2D const other) |
returns the signed angled between two vectors. | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static Vec2D const | unitX () |
Returns a unit X vector. | |
static Vec2D const | unitY () |
Returns a unit Y vector. | |
static Vec2D const | zero () |
Returns a zero-length vector. |
This is a two-component vector offset.
Vec2D | ( | ) |
Vec2D | ( | double | fill_value | ) |
Vec2D | ( | double | x, |
double | y | ||
) |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from VBase2D.
Returns a new vector representing the projection of this vector onto another one.
The resulting vector will be a scalar multiple of onto.
Reimplemented from VBase2D.
pythonRepr | ( | ostream | out, |
string | class_name | ||
) |
Reimplemented from VBase2D.
double signedAngleDeg | ( | Vec2D const | other | ) |
returns the signed angled between two vectors.
normalization is NOT necessary
double signedAngleRad | ( | Vec2D const | other | ) |
returns the signed angled between two vectors.
normalization is NOT necessary