LPoint2f

class LPoint2f

Bases: LVecBase2f

This is a two-component point in space.

Inheritance diagram

Inheritance diagram of LPoint2f

LPoint2f(void) = default
LPoint2f(LVecBase2f const &copy)
LPoint2f(float fill_value)
LPoint2f(float x, float y)
LPoint2f(LPoint2f const&) = default

Constructs a new LPoint2 from a LVecBase2

Constructs a new LPoint2 all components set to the fill value.

Constructs a new LPoint2 with the given components

static TypeHandle get_class_type(void)
LPoint2f 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.

LPoint2f project(LVecBase2f 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.

LPoint2f const &unit_x(void)

Returns a unit X point.

LPoint2f const &unit_y(void)

Returns a unit Y point.

LPoint2f const &zero(void)

Returns a zero-length point.