LVector3i

from panda3d.core import 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__(*args, **kwargs)
back()

C++ Interface: back(int cs)

/**
  • Returns the back vector for the given coordinate system.

*/

cross()

C++ Interface: cross(LVector3i self, const LVecBase3i other)

/**

*/

down()

C++ Interface: down(int cs)

/**
  • Returns the down vector for the given coordinate system.

*/

forward()

C++ Interface: forward(int cs)

/**
  • Returns the forward vector for the given coordinate system.

*/

getClassType()

C++ Interface: get_class_type()

getXy()

C++ Interface: get_xy(LVector3i self)

/**
  • Returns a 2-component vector that shares just the first two components of

  • this vector.

*/

getXz()

C++ Interface: get_xz(LVector3i self)

/**
  • Returns a 2-component vector that shares just the first and last components

  • of this vector.

*/

getYz()

C++ Interface: get_yz(LVector3i self)

/**
  • Returns a 2-component vector that shares just the last two components of

  • this vector.

*/

get_class_type()

C++ Interface: get_class_type()

get_xy()

C++ Interface: get_xy(LVector3i self)

/**
  • Returns a 2-component vector that shares just the first two components of

  • this vector.

*/

get_xz()

C++ Interface: get_xz(LVector3i self)

/**
  • Returns a 2-component vector that shares just the first and last components

  • of this vector.

*/

get_yz()

C++ Interface: get_yz(LVector3i self)

/**
  • Returns a 2-component vector that shares just the last two components of

  • this vector.

*/

left()

C++ Interface: left(int cs)

/**
  • Returns the left vector for the given coordinate system.

*/

rfu()

C++ Interface: rfu(int right, int fwd, int up, int cs)

// INLINE_LINMATH static FLOATNAME(LVector3) & rfu(FLOATTYPE right,

/**
  • Returns a vector that is described by its right, forward, and up

  • components, in whatever way the coordinate system represents that vector.

*/

right()

C++ Interface: right(int cs)

/**
  • Returns the right vector for the given coordinate system.

*/

unitX()

C++ Interface: unit_x()

/**
  • Returns a unit X vector.

*/

unitY()

C++ Interface: unit_y()

/**
  • Returns a unit Y vector.

*/

unitZ()

C++ Interface: unit_z()

/**
  • Returns a unit Z vector.

*/

unit_x()

C++ Interface: unit_x()

/**
  • Returns a unit X vector.

*/

unit_y()

C++ Interface: unit_y()

/**
  • Returns a unit Y vector.

*/

unit_z()

C++ Interface: unit_z()

/**
  • Returns a unit Z vector.

*/

up()

C++ Interface: up(int cs)

/**
  • Returns the up vector for the given coordinate system.

*/

xy
xz
yz
zero()

C++ Interface: zero()

/**
  • Returns a zero-length vector.

*/