LPoint3f¶
-
class LPoint3f¶
Bases:
LVecBase3fThis is a three-component point in space (as opposed to a three-component vector, which represents a direction and a distance). Some of the methods are slightly different between
LPoint3andLVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.Inheritance diagram
digraph inheritance072663d446 { 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=""]; "LPoint3f" [URL="acron.core.LPoint3f.html#acron.core.LPoint3f",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LVecBase3f" -> "LPoint3f" [arrowsize=0.75,style=""]; "LVecBase3f" [URL="acron.core.LVecBase3f.html#acron.core.LVecBase3f",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" -> "LVecBase3f" [arrowsize=0.75,style=""]; }- LPoint3f.__add__()¶
- LPoint3f.__div__()¶
- LPoint3f.__getattr__()¶
- LPoint3f.__init__()¶
- LPoint3f.__mul__()¶
- LPoint3f.__repr__()¶
- LPoint3f.__rmul__()¶
- LPoint3f.__setattr__()¶
- LPoint3f.__sub__()¶
- LPoint3f.__sub__()¶
- LPoint3f.cross()¶
- static LPoint3f.get_class_type()¶
- LPoint3f.get_xy()¶
Returns a 2-component vector that shares just the first two components of this vector.
- LPoint3f.get_xz()¶
Returns a 2-component vector that shares just the first and last components of this vector.
- LPoint3f.get_yz()¶
Returns a 2-component vector that shares just the last two components of this vector.
- LPoint3f.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.
- static LPoint3f.origin()¶
Returns the origin of the indicated coordinate system. This is always 0, 0, 0 with all of our existing coordinate systems; it’s hard to imagine it ever being different.
- LPoint3f.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 LPoint3f.rfu()¶
Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.
- static LPoint3f.unit_x()¶
Returns a unit X point.
- static LPoint3f.unit_y()¶
Returns a unit Y point.
- static LPoint3f.unit_z()¶
Returns a unit Z point.
- static LPoint3f.zero()¶
Returns a zero-length point.