LPoint4f

class LPoint4f

Bases: LVecBase4f

This is a four-component point in space.

Inheritance diagram

Inheritance diagram of LPoint4f

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

Returns the x and y component of this vector

LPoint3f get_xyz(void) const

Returns the x, y and z component of this vector

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

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

LPoint4f const &unit_w(void)

Returns a unit W point.

LPoint4f const &unit_x(void)

Returns a unit X point.

LPoint4f const &unit_y(void)

Returns a unit Y point.

LPoint4f const &unit_z(void)

Returns a unit Z point.

LPoint4f const &zero(void)

Returns a zero-length point.