This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance).
More...
Public Member Functions |
| | __init__ () |
| | __init__ (LVecBase3f const copy) |
| | __init__ (float fill_value) |
| | __init__ (float x, float y, float z) |
| LPoint3f | cross (LVecBase3f const other) |
| PyObject | getattr (string attr_name) |
| LPoint2f | getXy () |
| | Returns a 2-component vector that shares just the first two components of this vector.
|
| LPoint2f | getXz () |
| | Returns a 2-component vector that shares just the first and last components of this vector.
|
| LPoint2f | getYz () |
| | Returns a 2-component vector that shares just the last two components of this vector.
|
| LPoint3f | operator* (float scalar) |
| LVecBase3f | operator+ (LVecBase3f const other) |
| LPoint3f | operator+ (LVector3f const other) |
| LPoint3f | operator- () |
| LVector3f | operator- (LPoint3f const other) |
| LVecBase3f | operator- (LVecBase3f const other) |
| LPoint3f | operator- (LVector3f const other) |
| LPoint3f | operator/ (float scalar) |
| LPoint3f | operator= (LVecBase3f const copy) |
| LPoint3f | operator= (float fill_value) |
| LPoint3f | project (LVecBase3f 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 LPoint3f | origin (CoordinateSystem cs) |
| | Returns the origin of the indicated coordinate system.
|
| static LPoint3f | origin () |
| | Returns the origin of the indicated coordinate system.
|
| static LPoint3f | rfu (float right, float fwd, float up, CoordinateSystem cs) |
| | Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.
|
| static LPoint3f | rfu (float right, float fwd, float up) |
| | Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.
|
| static LPoint3f const | unitX () |
| | Returns a unit X point.
|
| static LPoint3f const | unitY () |
| | Returns a unit Y point.
|
| static LPoint3f const | unitZ () |
| | Returns a unit Z point.
|
| static LPoint3f const | zero () |
| | Returns a zero-length point.
|
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.