|
Panda3D
|
This is a two-component point in space. More...
Public Member Functions | |
| Point2D () | |
| Point2D (VBase2D const copy) | |
| Point2D (double x, double y) | |
| Point2D (double fill_value) | |
| PyObject | getattr (string attr_name) |
| Point2D | operator* (double scalar) |
| VBase2D | operator+ (VBase2D const other) |
| Point2D | operator+ (Vec2D const other) |
| Point2D | operator- () |
| Vec2D | operator- (Point2D const other) |
| VBase2D | operator- (VBase2D const other) |
| Point2D | operator- (Vec2D const other) |
| Point2D | operator/ (double scalar) |
| Point2D | operator= (double fill_value) |
| Point2D | operator= (VBase2D const copy) |
| Point2D | 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) |
Static Public Member Functions | |
| static TypeHandle | getClassType () |
| static Point2D const | unitX () |
| Returns a unit X point. | |
| static Point2D const | unitY () |
| Returns a unit Y point. | |
| static Point2D const | zero () |
| Returns a zero-length point. | |
This is a two-component point in space.
| Point2D | ( | ) |
| Point2D | ( | double | fill_value | ) |
| Point2D | ( | double | x, |
| double | y | ||
| ) |
| PyObject getattr | ( | string | attr_name | ) |
Reimplemented from VBase2D.
| 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.
1.7.3