LPoint3d

class LPoint3d

Bases: LVecBase3d

This 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 LPoint3 and LVector3; in particular, subtraction of two points yields a vector, while addition of a vector and a point yields a point.

Inheritance diagram

digraph inheritance0c3bd8e52c { 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=""]; "LPoint3d" [URL="acron.core.LPoint3d.html#acron.core.LPoint3d",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LVecBase3d" -> "LPoint3d" [arrowsize=0.75,style=""]; "LVecBase3d" [URL="acron.core.LVecBase3d.html#acron.core.LVecBase3d",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" -> "LVecBase3d" [arrowsize=0.75,style=""]; }
LPoint3d.__add__()
LPoint3d.__div__()
LPoint3d.__getattr__()
LPoint3d.__init__()
LPoint3d.__mul__()
LPoint3d.__repr__()
LPoint3d.__rmul__()
LPoint3d.__setattr__()
LPoint3d.__sub__()
LPoint3d.__sub__()
LPoint3d.cross()
static LPoint3d.get_class_type()
LPoint3d.get_xy()

Returns a 2-component vector that shares just the first two components of this vector.

LPoint3d.get_xz()

Returns a 2-component vector that shares just the first and last components of this vector.

LPoint3d.get_yz()

Returns a 2-component vector that shares just the last two components of this vector.

LPoint3d.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 LPoint3d.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.

LPoint3d.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 LPoint3d.rfu()

Returns a point described by right, forward, up displacements from the origin, wherever that maps to in the given coordinate system.

static LPoint3d.unit_x()

Returns a unit X point.

static LPoint3d.unit_y()

Returns a unit Y point.

static LPoint3d.unit_z()

Returns a unit Z point.

static LPoint3d.zero()

Returns a zero-length point.