panda3d.core.LPoint2d

class LPoint2d

Bases: LVecBase2d

This is a two-component point in space.

Inheritance diagram

Inheritance diagram of LPoint2d

__init__() → None
__init__(param0: LPoint2d) → None
__init__(copy: LVecBase2d) → None

Constructs a new LPoint2 from a LVecBase2

__init__(fill_value: float) → None

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

__init__(x: float, y: float) → None

Constructs a new LPoint2 with the given components

static getClassType() → TypeHandle
Return type

TypeHandle

normalized() → LPoint2d

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.

Return type

LPoint2d

project(onto: LVecBase2d) → LPoint2d

Returns a new vector representing the projection of this vector onto another one. The resulting vector will be a scalar multiple of onto.

Return type

LPoint2d

static unitX() → LPoint2d

Returns a unit X point.

Return type

LPoint2d

static unitY() → LPoint2d

Returns a unit Y point.

Return type

LPoint2d

static zero() → LPoint2d

Returns a zero-length point.

Return type

LPoint2d