panda3d.core.LPoint4d

from panda3d.core import LPoint4d
class LPoint4d

Bases: LVecBase4d

This is a four-component point in space.

Inheritance diagram

Inheritance diagram of LPoint4d

__init__() → None
__init__(param0: LPoint4d) → None
__init__(copy: LVecBase3d, w: float) → None
__init__(copy: LVecBase4d) → None
__init__(fill_value: float) → None
__init__(x: float, y: float, z: float, w: float) → None
static zero() → LPoint4d

Returns a zero-length point.

Return type

LPoint4d

static unitX() → LPoint4d

Returns a unit X point.

Return type

LPoint4d

static unitY() → LPoint4d

Returns a unit Y point.

Return type

LPoint4d

static unitZ() → LPoint4d

Returns a unit Z point.

Return type

LPoint4d

static unitW() → LPoint4d

Returns a unit W point.

Return type

LPoint4d

getXyz() → LPoint3d

Returns the x, y and z component of this vector

Return type

LPoint3d

getXy() → LPoint2d

Returns the x and y component of this vector

Return type

LPoint2d

normalized() → LPoint4d

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.

Return type

LPoint4d

project(onto: LVecBase4d) → LPoint4d

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

Return type

LPoint4d

static getClassType() → TypeHandle
Return type

TypeHandle

property xyz

Returns the x, y and z component of this vector

Return type

LPoint3d

property xy

Returns the x and y component of this vector

Return type

LPoint2d