LVector2d

from panda3d.core import LVector2d
class LVector2d

Bases:

Bases: LVecBase2d

This is a two-component vector offset.

Inheritance diagram

Inheritance diagram of LVector2d

__add__(other: LVecBase2d) LVecBase2d
__add__(other: LVector2d) LVector2d
__div__(scalar: float) LVector2d
__getattr__(attr_name: str) object
__init__()
__init__(copy: LVecBase2d)

Constructs a new LVector2 from a LVecBase2

__init__(param0: LVector2d)
__init__(fill_value: float)

Constructs a new LVector2 with all components set to the fill value.

__init__(x: float, y: float)
__mul__(scalar: float) LVector2d
__repr__() str
__rmul__(scalar: float) LVector2d
__setattr__(attr_name: str, assign: object) int
__sub__(other: LVecBase2d) LVecBase2d
__sub__(other: LVector2d) LVector2d
__sub__(other: LVecBase2d) LVecBase2d
__sub__(other: LVector2d) LVector2d
static get_class_type() TypeHandle
normalized() LVector2d

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: LVecBase2d) LVector2d

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

signed_angle_deg(other: LVector2d) float

returns the signed angled between two vectors. normalization is NOT necessary

signed_angle_rad(other: LVector2d) float

returns the signed angled between two vectors. normalization is NOT necessary

static unit_x() LVector2d

Returns a unit X vector.

static unit_y() LVector2d

Returns a unit Y vector.

static zero() LVector2d

Returns a zero-length vector.