LVector4f

class LVector4f

Bases: LVecBase4f

This is a four-component vector distance.

Inheritance diagram

Inheritance diagram of LVector4f

LVector4f(void) = default
LVector4f(LVecBase4f const &copy)
LVector4f(float fill_value)
LVector4f(float x, float y, float z, float w)
LVector4f(LVecBase3f const &copy, float w)
LVector4f(LVector4f const&) = default
static TypeHandle get_class_type(void)
LVector2f get_xy(void) const

Returns the x and y component of this vector

LVector3f get_xyz(void) const

Returns the x, y and z component of this vector

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

LVector4f project(LVecBase4f 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.

LVector4f const &unit_w(void)

Returns a unit W vector.

LVector4f const &unit_x(void)

Returns a unit X vector.

LVector4f const &unit_y(void)

Returns a unit Y vector.

LVector4f const &unit_z(void)

Returns a unit Z vector.

LVector4f const &zero(void)

Returns a zero-length vector.