LPoint2d

from acron.core import LPoint2d
class LPoint2d

Bases:

Bases: LVecBase2d

This is a two-component point in space.

Inheritance diagram

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

Constructs a new LPoint2 from a LVecBase2

Constructs a new LPoint2 all components set to the fill value.

Constructs a new LPoint2 with the given components

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

project()

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

static unit_x()

Returns a unit X point.

static unit_y()

Returns a unit Y point.

static zero()

Returns a zero-length point.