LVector3i¶
from acron.core import LVector3i
- class LVector3i¶
Bases:
Bases:
LVecBase3iThis 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
LPoint3andLVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.Inheritance diagram
digraph inheritance5ff08038ec { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "LVecBase3i" [URL="acron.core.LVecBase3i.html#acron.core.LVecBase3i",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "LVecBase3i" [arrowsize=0.75,style=""]; "LVector3i" [URL="acron.core.LVector3i.html#acron.core.LVector3i",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LVecBase3i" -> "LVector3i" [arrowsize=0.75,style=""]; }- __add__()¶
- __div__()¶
- __getattr__()¶
- __init__()¶
- __mul__()¶
- __repr__()¶
- __rmul__()¶
- __setattr__()¶
- __sub__()¶
- __sub__()¶
- static back()¶
Returns the back vector for the given coordinate system.
- cross()¶
- static down()¶
Returns the down vector for the given coordinate system.
- static forward()¶
Returns the forward vector for the given coordinate system.
- static get_class_type()¶
- get_xy()¶
Returns a 2-component vector that shares just the first two components of this vector.
- get_xz()¶
Returns a 2-component vector that shares just the first and last components of this vector.
- get_yz()¶
Returns a 2-component vector that shares just the last two components of this vector.
- static left()¶
Returns the left vector for the given coordinate system.
- static rfu()¶
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.
- static right()¶
Returns the right vector for the given coordinate system.
- static unit_x()¶
Returns a unit X vector.
- static unit_y()¶
Returns a unit Y vector.
- static unit_z()¶
Returns a unit Z vector.
- static up()¶
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()¶
Returns a zero-length vector.