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
andLVector3
; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.Inheritance diagram
- __add__(other: LVecBase3i) LVecBase3i
- __init__()
- __init__(copy: LVecBase2i, z: int)
- __init__(copy: LVecBase3i)
- __init__(param0: LVector3i)
- __init__(fill_value: int)
- __sub__(other: LVecBase3i) LVecBase3i
- __sub__(other: LVecBase3i) LVecBase3i
- 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.
- 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.