panda3d.core.LVector3i

class LVector3i

Bases: LVecBase3i

This is a three-component vector distance (as opposed to a three-component point, which represents a particular point in space). Some of the methods are slightly different between LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.

Inheritance diagram

Inheritance diagram of LVector3i

__init__() → None
__init__(copy: LVecBase2i, z: int) → None
__init__(copy: LVecBase3i) → None
__init__(param0: LVector3i) → None
__init__(fill_value: int) → None
__init__(x: int, y: int, z: int) → None
static zero() → LVector3i

Returns a zero-length vector.

Return type

LVector3i

static unitX() → LVector3i

Returns a unit X vector.

Return type

LVector3i

static unitY() → LVector3i

Returns a unit Y vector.

Return type

LVector3i

static unitZ() → LVector3i

Returns a unit Z vector.

Return type

LVector3i

getXy() → LVector2i

Returns a 2-component vector that shares just the first two components of this vector.

Return type

LVector2i

getXz() → LVector2i

Returns a 2-component vector that shares just the first and last components of this vector.

Return type

LVector2i

getYz() → LVector2i

Returns a 2-component vector that shares just the last two components of this vector.

Return type

LVector2i

cross(other: LVecBase3i) → LVector3i
Return type

LVector3i

static up(cs: CoordinateSystem) → LVector3i

Returns the up vector for the given coordinate system.

Return type

LVector3i

static right(cs: CoordinateSystem) → LVector3i

Returns the right vector for the given coordinate system.

Return type

LVector3i

static forward(cs: CoordinateSystem) → LVector3i

Returns the forward vector for the given coordinate system.

Return type

LVector3i

static down(cs: CoordinateSystem) → LVector3i

Returns the down vector for the given coordinate system.

Return type

LVector3i

static left(cs: CoordinateSystem) → LVector3i

Returns the left vector for the given coordinate system.

Return type

LVector3i

static back(cs: CoordinateSystem) → LVector3i

Returns the back vector for the given coordinate system.

Return type

LVector3i

static rfu(right: int, fwd: int, up: int, cs: CoordinateSystem) → LVector3i

Returns a vector that is described by its right, forward, and up components, in whatever way the coordinate system represents that vector.

Return type

LVector3i

static getClassType() → TypeHandle
Return type

TypeHandle

property xy

Returns a 2-component vector that shares just the first two components of this vector.

Return type

LVector2i

property xz

Returns a 2-component vector that shares just the first and last components of this vector.

Return type

LVector2i

property yz

Returns a 2-component vector that shares just the last two components of this vector.

Return type

LVector2i