LVector2f

class LVector2f

Bases: LVecBase2f

This is a two-component vector offset.

Inheritance diagram

digraph inheritance1651165ec7 { 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=""]; "LVecBase2f" [URL="acron.core.LVecBase2f.html#acron.core.LVecBase2f",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" -> "LVecBase2f" [arrowsize=0.75,style=""]; "LVector2f" [URL="acron.core.LVector2f.html#acron.core.LVector2f",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LVecBase2f" -> "LVector2f" [arrowsize=0.75,style=""]; }
LVector2f.__add__()
LVector2f.__div__()
LVector2f.__getattr__()
LVector2f.__init__()

Constructs a new LVector2 from a LVecBase2

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

LVector2f.__mul__()
LVector2f.__repr__()
LVector2f.__rmul__()
LVector2f.__setattr__()
LVector2f.__sub__()
LVector2f.__sub__()
static LVector2f.get_class_type()
LVector2f.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.

LVector2f.project()

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

LVector2f.signed_angle_deg()

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

LVector2f.signed_angle_rad()

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

static LVector2f.unit_x()

Returns a unit X vector.

static LVector2f.unit_y()

Returns a unit Y vector.

static LVector2f.zero()

Returns a zero-length vector.