Panda3D
|
This is a four-component point in space. More...
#include "lpoint4.h"
Public Member Functions | |
LPoint4f (const LVecBase4f ©) | |
LPoint4f (float fill_value) | |
LPoint4f (float x, float y, float z, float w) | |
LPoint4f | operator* (float scalar) const |
LVecBase4f | operator+ (const LVecBase4f &other) const |
LPoint4f | operator+ (const LVector4f &other) const |
LVector4f | operator- (const LPoint4f &other) const |
LVecBase4f | operator- (const LVecBase4f &other) const |
LPoint4f | operator- () const |
LPoint4f | operator- (const LVector4f &other) const |
LPoint4f | operator/ (float scalar) const |
LPoint4f & | operator= (float fill_value) |
LPoint4f & | operator= (const LVecBase4f ©) |
LPoint4f | project (const LVecBase4f &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 LPoint4f & | unit_w () |
Returns a unit W point. | |
static const LPoint4f & | unit_x () |
Returns a unit X point. | |
static const LPoint4f & | unit_y () |
Returns a unit Y point. | |
static const LPoint4f & | unit_z () |
Returns a unit Z point. | |
static const LPoint4f & | zero () |
Returns a zero-length point. |
LPoint4f LPoint4f::project | ( | const LVecBase4f & | 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 LVecBase4f.
const LPoint4f & LPoint4f::unit_w | ( | ) | [inline, static] |
const LPoint4f & LPoint4f::unit_x | ( | ) | [inline, static] |
const LPoint4f & LPoint4f::unit_y | ( | ) | [inline, static] |
const LPoint4f & LPoint4f::unit_z | ( | ) | [inline, static] |
const LPoint4f & LPoint4f::zero | ( | ) | [inline, static] |
Returns a zero-length point.
Reimplemented from LVecBase4f.