LVector2d

class LVector2d

Bases: LVecBase2d

This is a two-component vector offset.

Inheritance diagram

digraph inheritancebb36ed8f75 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "LVecBase2d" [URL="acron.core.LVecBase2d.html#acron.core.LVecBase2d",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "LVecBase2d" [arrowsize=0.75,style=""]; "LVector2d" [URL="acron.core.LVector2d.html#acron.core.LVector2d",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LVecBase2d" -> "LVector2d" [arrowsize=0.75,style=""]; }
LVector2d.__add__()
LVector2d.__div__()
LVector2d.__getattr__()
LVector2d.__init__()

Constructs a new LVector2 from a LVecBase2

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

LVector2d.__mul__()
LVector2d.__repr__()
LVector2d.__rmul__()
LVector2d.__setattr__()
LVector2d.__sub__()
LVector2d.__sub__()
static LVector2d.get_class_type()
LVector2d.normalized()

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.

LVector2d.project()

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

LVector2d.signed_angle_deg()

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

LVector2d.signed_angle_rad()

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

static LVector2d.unit_x()

Returns a unit X vector.

static LVector2d.unit_y()

Returns a unit Y vector.

static LVector2d.zero()

Returns a zero-length vector.