Panda3D
|
This is a four-component vector distance. More...
#include "lvector4.h"
Public Member Functions | |
LVector4f (const LVecBase4f ©) | |
LVector4f (float fill_value) | |
LVector4f (float x, float y, float z, float w) | |
LVector4f | operator* (float scalar) const |
LVecBase4f | operator+ (const LVecBase4f &other) const |
LVector4f | operator+ (const LVector4f &other) const |
LVector4f | operator- () const |
LVecBase4f | operator- (const LVecBase4f &other) const |
LVector4f | operator- (const LVector4f &other) const |
LVector4f | operator/ (float scalar) const |
LVector4f & | operator= (const LVecBase4f ©) |
LVector4f & | operator= (float fill_value) |
LVector4f | 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 LVector4f & | unit_w () |
Returns a unit W vector. | |
static const LVector4f & | unit_x () |
Returns a unit X vector. | |
static const LVector4f & | unit_y () |
Returns a unit Y vector. | |
static const LVector4f & | unit_z () |
Returns a unit Z vector. | |
static const LVector4f & | zero () |
Returns a zero-length vector. |
This is a four-component vector distance.
Definition at line 85 of file lvector4.h.
LVector4f LVector4f::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.
Definition at line 334 of file lvector4.h.
const LVector4f & LVector4f::unit_w | ( | ) | [inline, static] |
const LVector4f & LVector4f::unit_x | ( | ) | [inline, static] |
const LVector4f & LVector4f::unit_y | ( | ) | [inline, static] |
const LVector4f & LVector4f::unit_z | ( | ) | [inline, static] |
const LVector4f & LVector4f::zero | ( | ) | [inline, static] |
Returns a zero-length vector.
Reimplemented from LVecBase4f.
Definition at line 211 of file lvector4.h.