panda3d.core.LVector2i

class LVector2i

Bases: LVecBase2i

This is a two-component vector offset.

Inheritance diagram

Inheritance diagram of LVector2i

__init__() → None
__init__(copy: LVecBase2i) → None

Constructs a new LVector2 from a LVecBase2

__init__(param0: LVector2i) → None
__init__(fill_value: int) → None

Constructs a new LVector2 with all components set to the fill value.

__init__(x: int, y: int) → None
static getClassType() → TypeHandle
Return type

TypeHandle

static unitX() → LVector2i

Returns a unit X vector.

Return type

LVector2i

static unitY() → LVector2i

Returns a unit Y vector.

Return type

LVector2i

static zero() → LVector2i

Returns a zero-length vector.

Return type

LVector2i