panda3d.core.LVector4d

from panda3d.core import LVector4d
class LVector4d

Bases: LVecBase4d

This is a four-component vector distance.

Inheritance diagram

Inheritance diagram of LVector4d

__init__() → None
__init__(copy: LVecBase3d, w: float) → None
__init__(copy: LVecBase4d) → None
__init__(param0: LVector4d) → None
__init__(fill_value: float) → None
__init__(x: float, y: float, z: float, w: float) → None
static getClassType() → TypeHandle
Return type

TypeHandle

getXy() → LVector2d

Returns the x and y component of this vector

Return type

LVector2d

getXyz() → LVector3d

Returns the x, y and z component of this vector

Return type

LVector3d

normalized() → LVector4d

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

LVector4d

project(onto: LVecBase4d) → LVector4d

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

LVector4d

static unitW() → LVector4d

Returns a unit W vector.

Return type

LVector4d

static unitX() → LVector4d

Returns a unit X vector.

Return type

LVector4d

static unitY() → LVector4d

Returns a unit Y vector.

Return type

LVector4d

static unitZ() → LVector4d

Returns a unit Z vector.

Return type

LVector4d

property xy

Returns the x and y component of this vector

Return type

LVector2d

property xyz

Returns the x, y and z component of this vector

Return type

LVector3d

static zero() → LVector4d

Returns a zero-length vector.

Return type

LVector4d