This is a two-component point in space. More...
Public Member Functions | |
Point2 () | |
Point2 (VBase2 const copy) | |
Point2 (float fill_value) | |
Point2 (float x, float y) | |
PyObject | getattr (string attr_name) |
Point2 | operator* (float scalar) |
VBase2 | operator+ (VBase2 const other) |
Point2 | operator+ (Vec2 const other) |
Point2 | operator- () |
Vec2 | operator- (Point2 const other) |
VBase2 | operator- (VBase2 const other) |
Point2 | operator- (Vec2 const other) |
Point2 | operator/ (float scalar) |
Point2 | operator= (VBase2 const copy) |
Point2 | operator= (float fill_value) |
Point2 | project (VBase2 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) |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static Point2 const | unitX () |
Returns a unit X point. | |
static Point2 const | unitY () |
Returns a unit Y point. | |
static Point2 const | zero () |
Returns a zero-length point. |
This is a two-component point in space.
Point2 | ( | ) |
Point2 | ( | float | fill_value | ) |
Point2 | ( | float | x, |
float | y | ||
) |
static TypeHandle getClassType | ( | ) | [static] |
Reimplemented from VBase2.
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 VBase2.
pythonRepr | ( | ostream | out, |
string | class_name | ||
) |
Reimplemented from VBase2.