# LPoint3i¶

from panda3d.core import LPoint3i

class LPoint3i

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 and LVector3; 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
__add__(other: LVector3i)LPoint3i
__div__(scalar: int)LPoint3i
__getattr__(attr_name: str)object
__init__()
__init__(param0: LPoint3i)
__init__(copy: LVecBase2i, z: int)
__init__(copy: LVecBase3i)
__init__(fill_value: int)
__init__(x: int, y: int, z: int)
__mul__(scalar: int)LPoint3i
__repr__()str
__setattr__(attr_name: str, assign: object)int
__sub__(other: LPoint3i)LVector3i
__sub__(other: LVecBase3i)LVecBase3i
__sub__(other: LVector3i)LPoint3i
__sub__(other: LPoint3i)LVector3i
__sub__(other: LVecBase3i)LVecBase3i
__sub__(other: LVector3i)LPoint3i
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.

static unitX()LPoint3i

Returns a unit X point.

static unitY()LPoint3i

Returns a unit Y point.

static unitZ()LPoint3i

Returns a unit Z point.

property xyLPoint2i

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

property xzLPoint2i

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

property yzLPoint2i

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

static zero()LPoint3i

Returns a zero-length point.