LPoint3d

from panda3d.core import LPoint3d
class LPoint3d

Bases:

Bases: LVecBase3d

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

Inheritance diagram of LPoint3d

__add__(other: LVecBase3d) LVecBase3d
__add__(other: LVector3d) LPoint3d
__div__(scalar: float) LPoint3d
__getattr__(attr_name: str) object
__init__()
__init__(param0: LPoint3d)
__init__(copy: LVecBase2d, z: float)
__init__(copy: LVecBase3d)
__init__(fill_value: float)
__init__(x: float, y: float, z: float)
__mul__(scalar: float) LPoint3d
__repr__() str
__setattr__(attr_name: str, assign: object) int
__sub__(other: LPoint3d) LVector3d
__sub__(other: LVecBase3d) LVecBase3d
__sub__(other: LVector3d) LPoint3d
__sub__(other: LPoint3d) LVector3d
__sub__(other: LVecBase3d) LVecBase3d
__sub__(other: LVector3d) LPoint3d
cross(other: LVecBase3d) LPoint3d
static getClassType() TypeHandle
getXy() LPoint2d

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

getXz() LPoint2d

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

getYz() LPoint2d

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

normalized() LPoint3d

Normalizes the vector and returns the normalized vector as a copy. If the vector was a zero-length vector, a zero length vector will be returned.

static origin(cs: CoordinateSystem) LPoint3d

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.

project(onto: LVecBase3d) LPoint3d

Returns a new vector representing the projection of this vector onto another one. The resulting vector will be a scalar multiple of onto.

static rfu(right: float, fwd: float, up: float, cs: CoordinateSystem) LPoint3d

Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.

static unitX() LPoint3d

Returns a unit X point.

static unitY() LPoint3d

Returns a unit Y point.

static unitZ() LPoint3d

Returns a unit Z point.

property xy LPoint2d

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

property xz LPoint2d

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

property yz LPoint2d

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

static zero() LPoint3d

Returns a zero-length point.