Panda3D
|
This is a two-component point in space. More...
#include "lpoint2.h"
Public Member Functions | |
LPoint2d (const LVecBase2d ©) | |
LPoint2d (double fill_value) | |
LPoint2d (double x, double y) | |
LPoint2d | operator* (double scalar) const |
LVecBase2d | operator+ (const LVecBase2d &other) const |
LPoint2d | operator+ (const LVector2d &other) const |
LVector2d | operator- (const LPoint2d &other) const |
LVecBase2d | operator- (const LVecBase2d &other) const |
LPoint2d | operator- () const |
LPoint2d | operator- (const LVector2d &other) const |
LPoint2d | operator/ (double scalar) const |
LPoint2d & | operator= (double fill_value) |
LPoint2d & | operator= (const LVecBase2d ©) |
LPoint2d | project (const LVecBase2d &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 LPoint2d & | unit_x () |
Returns a unit X point. | |
static const LPoint2d & | unit_y () |
Returns a unit Y point. | |
static const LPoint2d & | zero () |
Returns a zero-length point. |
LPoint2d LPoint2d::project | ( | const LVecBase2d & | 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 LVecBase2d.
const LPoint2d & LPoint2d::unit_x | ( | ) | [inline, static] |
const LPoint2d & LPoint2d::unit_y | ( | ) | [inline, static] |
const LPoint2d & LPoint2d::zero | ( | ) | [inline, static] |
Returns a zero-length point.
Reimplemented from LVecBase2d.
Definition at line 524 of file lpoint2.h.
Referenced by EggVertexUV::get_uv(), EggVertex::get_uv(), Triangulator::get_vertex(), and MayaShaderColorDef::project_uv().