panda3d.core.LPoint4f

class LPoint4f

Bases: LVecBase4f

This is a four-component point in space.

Inheritance diagram

Inheritance diagram of LPoint4f

__init__() → None
__init__(param0: LPoint4f) → None
__init__(copy: LVecBase3f, w: float) → None
__init__(copy: LVecBase4f) → None
__init__(fill_value: float) → None
__init__(x: float, y: float, z: float, w: float) → None
static zero() → LPoint4f

Returns a zero-length point.

Return type

LPoint4f

static unitX() → LPoint4f

Returns a unit X point.

Return type

LPoint4f

static unitY() → LPoint4f

Returns a unit Y point.

Return type

LPoint4f

static unitZ() → LPoint4f

Returns a unit Z point.

Return type

LPoint4f

static unitW() → LPoint4f

Returns a unit W point.

Return type

LPoint4f

getXyz() → LPoint3f

Returns the x, y and z component of this vector

Return type

LPoint3f

getXy() → LPoint2f

Returns the x and y component of this vector

Return type

LPoint2f

normalized() → LPoint4f

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

LPoint4f

project(onto: LVecBase4f) → LPoint4f

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

LPoint4f

static getClassType() → TypeHandle
Return type

TypeHandle

property xyz

Returns the x, y and z component of this vector

Return type

LPoint3f

property xy

Returns the x and y component of this vector

Return type

LPoint2f