LPoint2f¶
-
class LPoint2f¶
Bases:
LVecBase2fThis is a two-component point in space.
Inheritance diagram
digraph inheritance9c77270613 { 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=""]; "LPoint2f" [URL="acron.core.LPoint2f.html#acron.core.LPoint2f",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LVecBase2f" -> "LPoint2f" [arrowsize=0.75,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=""]; }- LPoint2f.__add__()¶
- LPoint2f.__div__()¶
- LPoint2f.__getattr__()¶
- LPoint2f.__init__()¶
Constructs a new
LPoint2from aLVecBase2Constructs a new
LPoint2all components set to the fill value.Constructs a new
LPoint2with the given components
- LPoint2f.__mul__()¶
- LPoint2f.__repr__()¶
- LPoint2f.__rmul__()¶
- LPoint2f.__setattr__()¶
- LPoint2f.__sub__()¶
- LPoint2f.__sub__()¶
- static LPoint2f.get_class_type()¶
- LPoint2f.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.
- LPoint2f.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 LPoint2f.unit_x()¶
Returns a unit X point.
- static LPoint2f.unit_y()¶
Returns a unit Y point.
- static LPoint2f.zero()¶
Returns a zero-length point.