LPoint2d

class LPoint2d

Bases: LVecBase2d

This is a two-component point in space.

Inheritance diagram

Inheritance diagram of LPoint2d

LPoint2d(void) = default
LPoint2d(LVecBase2d const &copy)
LPoint2d(double fill_value)
LPoint2d(double x, double y)
LPoint2d(LPoint2d 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)
LPoint2d 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.

LPoint2d project(LVecBase2d 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.

LPoint2d const &unit_x(void)

Returns a unit X point.

LPoint2d const &unit_y(void)

Returns a unit Y point.

LPoint2d const &zero(void)

Returns a zero-length point.