LVector3d

class LVector3d

Bases: LVecBase3d

This is a three-component vector distance (as opposed to a three-component point, which represents a particular point in space). 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 inheritancebb854dac78 { 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=""]; "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=""]; "LVector3d" [URL="acron.core.LVector3d.html#acron.core.LVector3d",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "LVecBase3d" -> "LVector3d" [arrowsize=0.75,style=""]; }
LVector3d.__add__()
LVector3d.__div__()
LVector3d.__getattr__()
LVector3d.__init__()
LVector3d.__mul__()
LVector3d.__repr__()
LVector3d.__rmul__()
LVector3d.__setattr__()
LVector3d.__sub__()
LVector3d.__sub__()
LVector3d.angle_deg()

Returns the angle between this vector and the other one, expressed in degrees. Both vectors should be initially normalized.

LVector3d.angle_rad()

Returns the unsigned angle between this vector and the other one, expressed in radians. Both vectors should be initially normalized.

static LVector3d.back()

Returns the back vector for the given coordinate system.

LVector3d.cross()
static LVector3d.down()

Returns the down vector for the given coordinate system.

static LVector3d.forward()

Returns the forward vector for the given coordinate system.

static LVector3d.get_class_type()
LVector3d.get_xy()

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

LVector3d.get_xz()

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

LVector3d.get_yz()

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

static LVector3d.left()

Returns the left vector for the given coordinate system.

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

LVector3d.project()

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

LVector3d.relative_angle_deg()

Deprecated: Do not use.

LVector3d.relative_angle_rad()

Deprecated: Do not use.

static LVector3d.rfu()

INLINE_LINMATH static FLOATNAME(LVector3) & rfu(FLOATTYPE right,

Returns a vector that is described by its right, forward, and up components, in whatever way the coordinate system represents that vector.

static LVector3d.right()

Returns the right vector for the given coordinate system.

LVector3d.signed_angle_deg()

Returns the signed angle between two vectors. The angle is positive if the rotation from this vector to other is clockwise when looking in the direction of the ref vector.

Vectors (except the ref vector) should be initially normalized.

LVector3d.signed_angle_rad()

returns the signed angle between two vectors. The angle is positive if the rotation from this vector to other is clockwise when looking in the direction of the ref vector.

Vectors (except the ref vector) should be initially normalized.

static LVector3d.unit_x()

Returns a unit X vector.

static LVector3d.unit_y()

Returns a unit Y vector.

static LVector3d.unit_z()

Returns a unit Z vector.

static LVector3d.up()

Returns the up vector for the given coordinate system.

static LVector3d.zero()

Returns a zero-length vector.