LVector3f
from panda3d.core import LVector3f
- class LVector3f
Bases:
LVecBase3f
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
- __init__(*args, **kwargs)
- angleDeg()
C++ Interface: angle_deg(LVector3f self, const LVector3f other)
- /**
Returns the angle between this vector and the other one, expressed in
degrees. Both vectors should be initially normalized.
*/
- angleRad()
C++ Interface: angle_rad(LVector3f self, const LVector3f other)
- /**
Returns the unsigned angle between this vector and the other one, expressed
in radians. Both vectors should be initially normalized.
*/
- angle_deg()
C++ Interface: angle_deg(LVector3f self, const LVector3f other)
- /**
Returns the angle between this vector and the other one, expressed in
degrees. Both vectors should be initially normalized.
*/
- angle_rad()
C++ Interface: angle_rad(LVector3f self, const LVector3f other)
- /**
Returns the unsigned angle between this vector and the other one, expressed
in radians. Both vectors should be initially normalized.
*/
- forward()
C++ Interface: forward(int cs)
- /**
Returns the forward vector for the given coordinate system.
*/
- getClassType()
C++ Interface: get_class_type()
- getXy()
C++ Interface: get_xy(LVector3f self)
- /**
Returns a 2-component vector that shares just the first two components of
this vector.
*/
- getXz()
C++ Interface: get_xz(LVector3f self)
- /**
Returns a 2-component vector that shares just the first and last components
of this vector.
*/
- getYz()
C++ Interface: get_yz(LVector3f self)
- /**
Returns a 2-component vector that shares just the last two components of
this vector.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_xy()
C++ Interface: get_xy(LVector3f self)
- /**
Returns a 2-component vector that shares just the first two components of
this vector.
*/
- get_xz()
C++ Interface: get_xz(LVector3f self)
- /**
Returns a 2-component vector that shares just the first and last components
of this vector.
*/
- get_yz()
C++ Interface: get_yz(LVector3f self)
- /**
Returns a 2-component vector that shares just the last two components of
this vector.
*/
- normalized()
C++ Interface: normalized(LVector3f self)
- /**
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.
*/
- project()
C++ Interface: project(LVector3f self, const LVecBase3f onto)
- /**
Returns a new vector representing the projection of this vector onto
another one. The resulting vector will be a scalar multiple of onto.
*/
- relativeAngleDeg()
C++ Interface: relative_angle_deg(LVector3f self, const LVector3f other)
- /**
@deprecated Do not use.
*/
- relativeAngleRad()
C++ Interface: relative_angle_rad(LVector3f self, const LVector3f other)
- /**
@deprecated Do not use.
*/
- relative_angle_deg()
C++ Interface: relative_angle_deg(LVector3f self, const LVector3f other)
- /**
@deprecated Do not use.
*/
- relative_angle_rad()
C++ Interface: relative_angle_rad(LVector3f self, const LVector3f other)
- /**
@deprecated Do not use.
*/
- rfu()
C++ Interface: rfu(float right, float fwd, float up, int cs)
// 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.
*/
- right()
C++ Interface: right(int cs)
- /**
Returns the right vector for the given coordinate system.
*/
- signedAngleDeg()
C++ Interface: signed_angle_deg(LVector3f self, const LVector3f other, const LVector3f ref)
- /**
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.
*/
- signedAngleRad()
C++ Interface: signed_angle_rad(LVector3f self, const LVector3f other, const LVector3f ref)
- /**
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.
*/
- signed_angle_deg()
C++ Interface: signed_angle_deg(LVector3f self, const LVector3f other, const LVector3f ref)
- /**
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.
*/
- signed_angle_rad()
C++ Interface: signed_angle_rad(LVector3f self, const LVector3f other, const LVector3f ref)
- /**
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.
*/
- xy
- xz
- yz