Panda3D
|
This is a two-component point in space. More...
#include "lpoint2.h"
Public Member Functions | |
LPoint2f (const LVecBase2f ©) | |
LPoint2f (float fill_value) | |
LPoint2f (float x, float y) | |
LPoint2f | operator* (float scalar) const |
LVecBase2f | operator+ (const LVecBase2f &other) const |
LPoint2f | operator+ (const LVector2f &other) const |
LVector2f | operator- (const LPoint2f &other) const |
LVecBase2f | operator- (const LVecBase2f &other) const |
LPoint2f | operator- () const |
LPoint2f | operator- (const LVector2f &other) const |
LPoint2f | operator/ (float scalar) const |
LPoint2f & | operator= (float fill_value) |
LPoint2f & | operator= (const LVecBase2f ©) |
LPoint2f | project (const LVecBase2f &onto) const |
Returns a new vector representing the projection of this vector onto another one. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static const LPoint2f & | unit_x () |
Returns a unit X point. | |
static const LPoint2f & | unit_y () |
Returns a unit Y point. | |
static const LPoint2f & | zero () |
Returns a zero-length point. |
LPoint2f LPoint2f::project | ( | const LVecBase2f & | onto | ) | const [inline] |
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 LVecBase2f.
const LPoint2f & LPoint2f::unit_x | ( | ) | [inline, static] |
const LPoint2f & LPoint2f::unit_y | ( | ) | [inline, static] |
const LPoint2f & LPoint2f::zero | ( | ) | [inline, static] |
Returns a zero-length point.
Reimplemented from LVecBase2f.