Panda3D
|
This is a two-component vector offset. More...
#include "lvector2.h"
Public Member Functions | |
LVector2f (const LVecBase2f ©) | |
LVector2f (float fill_value) | |
LVector2f (float x, float y) | |
LVector2f | operator* (float scalar) const |
LVecBase2f | operator+ (const LVecBase2f &other) const |
LVector2f | operator+ (const LVector2f &other) const |
LVector2f | operator- (const LVector2f &other) const |
LVecBase2f | operator- (const LVecBase2f &other) const |
LVector2f | operator- () const |
LVector2f | operator/ (float scalar) const |
LVector2f & | operator= (const LVecBase2f ©) |
LVector2f & | operator= (float fill_value) |
LVector2f | project (const LVecBase2f &onto) const |
Returns a new vector representing the projection of this vector onto another one. | |
float | signed_angle_deg (const LVector2f &other) const |
returns the signed angled between two vectors. | |
float | signed_angle_rad (const LVector2f &other) const |
returns the signed angled between two vectors. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
static const LVector2f & | unit_x () |
Returns a unit X vector. | |
static const LVector2f & | unit_y () |
Returns a unit Y vector. | |
static const LVector2f & | zero () |
Returns a zero-length vector. |
This is a two-component vector offset.
Definition at line 85 of file lvector2.h.
LVector2f LVector2f::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.
Definition at line 313 of file lvector2.h.
float LVector2f::signed_angle_deg | ( | const LVector2f & | other | ) | const [inline] |
returns the signed angled between two vectors.
normalization is NOT necessary
Definition at line 335 of file lvector2.h.
float LVector2f::signed_angle_rad | ( | const LVector2f & | other | ) | const [inline] |
returns the signed angled between two vectors.
normalization is NOT necessary
Definition at line 324 of file lvector2.h.
const LVector2f & LVector2f::unit_x | ( | ) | [inline, static] |
const LVector2f & LVector2f::unit_y | ( | ) | [inline, static] |
const LVector2f & LVector2f::zero | ( | ) | [inline, static] |
Returns a zero-length vector.
Reimplemented from LVecBase2f.
Definition at line 210 of file lvector2.h.