LVector2d¶
-
class
LVector2d
¶ Bases:
LVecBase2d
This is a two-component vector offset.
Inheritance diagram
-
LVector2d
(void) = default¶
-
LVector2d
(LVecBase2d const ©)¶
-
LVector2d
(double fill_value)¶
-
LVector2d
(double x, double y)¶
-
LVector2d
(LVector2d const&) = default¶ Constructs a new
LVector2
from aLVecBase2
Constructs a new
LVector2
with all components set to the fill value.
-
static TypeHandle
get_class_type
(void)¶
-
LVector2d
normalized
(void) const¶ Normalizes the vector and returns the normalized vector as a copy. If the vector was a zero-length vector, a zero length vector will be returned.
-
LVector2d
project
(LVecBase2d const &onto) const¶ Returns a new vector representing the projection of this vector onto another one. The resulting vector will be a scalar multiple of onto.
-
double
signed_angle_deg
(LVector2d const &other) const¶ returns the signed angled between two vectors. normalization is NOT necessary
-