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