# panda3d.core.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

__init__() → None
__init__(param0: LPoint3i) → None
__init__(copy: LVecBase2i, z: int) → None
__init__(copy: LVecBase3i) → None
__init__(fill_value: int) → None
__init__(x: int, y: int, z: int) → None
static zero() → LPoint3i

Returns a zero-length point.

Return type

LPoint3i

static unitX() → LPoint3i

Returns a unit X point.

Return type

LPoint3i

static unitY() → LPoint3i

Returns a unit Y point.

Return type

LPoint3i

static unitZ() → LPoint3i

Returns a unit Z point.

Return type

LPoint3i

getXy() → LPoint2i

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

Return type

LPoint2i

getXz() → LPoint2i

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

Return type

LPoint2i

getYz() → LPoint2i

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

Return type

LPoint2i

cross(other: LVecBase3i) → LPoint3i
Return type

LPoint3i

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.

Return type

LPoint3i

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.

Return type

LPoint3i

static getClassType() → TypeHandle
Return type

TypeHandle

property xy

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

Return type

LPoint2i

property xz

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

Return type

LPoint2i

property yz

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

Return type

LPoint2i