LVector3i

from panda3d.core import LVector3i
class LVector3i

Bases:

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

__add__(other: LVecBase3i) LVecBase3i
__add__(other: LVector3i) LVector3i
__div__(scalar: int) LVector3i
__getattr__(attr_name: str) object
__init__()
__init__(copy: LVecBase2i, z: int)
__init__(copy: LVecBase3i)
__init__(param0: LVector3i)
__init__(fill_value: int)
__init__(x: int, y: int, z: int)
__mul__(scalar: int) LVector3i
__repr__() str
__rmul__(scalar: int) LVector3i
__setattr__(attr_name: str, assign: object) int
__sub__(other: LVecBase3i) LVecBase3i
__sub__(other: LVector3i) LVector3i
__sub__(other: LVecBase3i) LVecBase3i
__sub__(other: LVector3i) LVector3i
static back(cs: CoordinateSystem) LVector3i

Returns the back vector for the given coordinate system.

cross(other: LVecBase3i) LVector3i
static down(cs: CoordinateSystem) LVector3i

Returns the down vector for the given coordinate system.

static forward(cs: CoordinateSystem) LVector3i

Returns the forward vector for the given coordinate system.

static get_class_type() TypeHandle
get_xy() LVector2i

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

get_xz() LVector2i

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

get_yz() LVector2i

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

static left(cs: CoordinateSystem) LVector3i

Returns the left vector for the given coordinate system.

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.

static right(cs: CoordinateSystem) LVector3i

Returns the right vector for the given coordinate system.

static unit_x() LVector3i

Returns a unit X vector.

static unit_y() LVector3i

Returns a unit Y vector.

static unit_z() LVector3i

Returns a unit Z vector.

static up(cs: CoordinateSystem) LVector3i

Returns the up vector for the given coordinate system.

property xy LVector2i

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

property xz LVector2i

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

property yz LVector2i

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

static zero() LVector3i

Returns a zero-length vector.