LVector2d
from panda3d.core import LVector2d
- class LVector2d
Bases:
Bases:
LVecBase2d
This is a two-component vector offset.
Inheritance diagram
- __add__(other: LVecBase2d) LVecBase2d
- __init__()
- __init__(copy: LVecBase2d)
- __init__(param0: LVector2d)
- __sub__(other: LVecBase2d) LVecBase2d
- __sub__(other: LVecBase2d) LVecBase2d
- static getClassType() 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.
- signedAngleDeg(other: LVector2d) float
returns the signed angled between two vectors. normalization is NOT necessary