LPoint2d¶
-
class LPoint2d¶
Bases:
LVecBase2dThis 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=""]; }- LPoint2d.__add__()¶
- LPoint2d.__div__()¶
- LPoint2d.__getattr__()¶
- LPoint2d.__init__()¶
Constructs a new
LPoint2from aLVecBase2Constructs a new
LPoint2all components set to the fill value.Constructs a new
LPoint2with the given components
- LPoint2d.__mul__()¶
- LPoint2d.__repr__()¶
- LPoint2d.__rmul__()¶
- LPoint2d.__setattr__()¶
- LPoint2d.__sub__()¶
- LPoint2d.__sub__()¶
- static LPoint2d.get_class_type()¶
- LPoint2d.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.
- LPoint2d.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 LPoint2d.unit_x()¶
Returns a unit X point.
- static LPoint2d.unit_y()¶
Returns a unit Y point.
- static LPoint2d.zero()¶
Returns a zero-length point.