LPoint3i
from panda3d.core import LPoint3i
- class LPoint3i
Bases:
Bases:
LVecBase3i
This is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance). 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__(param0: LPoint3i)
- __init__(copy: LVecBase2i, z: int)
- __init__(copy: LVecBase3i)
- __init__(fill_value: int)
- __sub__(other: LVecBase3i) LVecBase3i
- __sub__(other: LVecBase3i) LVecBase3i
- cross(other: LVecBase3i) LPoint3i
- static getClassType() TypeHandle
- getXy() LPoint2i
Returns a 2-component vector that shares just the first two components of this vector.
- getXz() LPoint2i
Returns a 2-component vector that shares just the first and last components of this vector.
- getYz() LPoint2i
Returns a 2-component vector that shares just the last two components of this vector.
- static origin(cs: CoordinateSystem) LPoint3i
Returns the origin of the indicated coordinate system. This is always 0, 0, 0 with all of our existing coordinate systems; it’s hard to imagine it ever being different.
- static rfu(right: int, fwd: int, up: int, cs: CoordinateSystem) LPoint3i
Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.
- property xy LPoint2i
Returns a 2-component vector that shares just the first two components of this vector.
- property xz LPoint2i
Returns a 2-component vector that shares just the first and last components of this vector.