LVector4d

class LVector4d

Bases: LVecBase4d

This is a four-component vector distance.

Inheritance diagram

Inheritance diagram of LVector4d

LVector4d(void) = default
LVector4d(LVecBase4d const &copy)
LVector4d(double fill_value)
LVector4d(double x, double y, double z, double w)
LVector4d(LVecBase3d const &copy, double w)
LVector4d(LVector4d const&) = default
static TypeHandle get_class_type(void)
LVector2d get_xy(void) const

Returns the x and y component of this vector

LVector3d get_xyz(void) const

Returns the x, y and z component of this vector

LVector4d 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.

LVector4d project(LVecBase4d 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.

LVector4d const &unit_w(void)

Returns a unit W vector.

LVector4d const &unit_x(void)

Returns a unit X vector.

LVector4d const &unit_y(void)

Returns a unit Y vector.

LVector4d const &unit_z(void)

Returns a unit Z vector.

LVector4d const &zero(void)

Returns a zero-length vector.