LPoint4d

class LPoint4d

Bases: LVecBase4d

This is a four-component point in space.

Inheritance diagram

Inheritance diagram of LPoint4d

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

Returns the x and y component of this vector

LPoint3d get_xyz(void) const

Returns the x, y and z component of this vector

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

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

LPoint4d const &unit_w(void)

Returns a unit W point.

LPoint4d const &unit_x(void)

Returns a unit X point.

LPoint4d const &unit_y(void)

Returns a unit Y point.

LPoint4d const &unit_z(void)

Returns a unit Z point.

LPoint4d const &zero(void)

Returns a zero-length point.