LVector4d

from panda3d.core import LVector4d
class LVector4d

Bases:

Bases: LVecBase4d

This is a four-component vector distance.

Inheritance diagram

Inheritance diagram of LVector4d

__add__(other: LVecBase4d) LVecBase4d
__add__(other: LVector4d) LVector4d
__div__(scalar: float) LVector4d
__getattr__(attr_name: str) object
__init__()
__init__(copy: LVecBase3d, w: float)
__init__(copy: LVecBase4d)
__init__(param0: LVector4d)
__init__(fill_value: float)
__init__(x: float, y: float, z: float, w: float)
__mul__(scalar: float) LVector4d
__repr__() str
__setattr__(attr_name: str, assign: object) int
__sub__(other: LVecBase4d) LVecBase4d
__sub__(other: LVector4d) LVector4d
__sub__(other: LVecBase4d) LVecBase4d
__sub__(other: LVector4d) LVector4d
static getClassType() TypeHandle
getXy() LVector2d

Returns the x and y component of this vector

getXyz() LVector3d

Returns the x, y and z component of this vector

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.

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.

static unitW() LVector4d

Returns a unit W vector.

static unitX() LVector4d

Returns a unit X vector.

static unitY() LVector4d

Returns a unit Y vector.

static unitZ() LVector4d

Returns a unit Z vector.

property xy LVector2d

Returns the x and y component of this vector

property xyz LVector3d

Returns the x, y and z component of this vector

static zero() LVector4d

Returns a zero-length vector.