This is the Vector export class This class represents a 3D float vector __reduce__() Serialization of Vector objects add(Vector) returns the sum of this and another vector sub(Vector) returns the difference of this and another vector negative() returns the negative (opposite) of this vector scale(Float,Float,Float) scales (multiplies) this vector by a factor multiply(Float) multiplies (scales) this vector by a single factor dot(Vector) returns the dot product of the this vector with another one cross(Vector) returns the cross product between this and another vector getAngle(Vector) returns the angle in radians between this and another vector normalize() normalizes the vector to the length of 1.0 isEqual(Vector, tolerance) -> Boolean If the distance to the given point is less or equal to the tolerance bith points are considered equal. projectToLine(Vector pnt,Vector vec) Projects the point 'pnt' on a line that goes through the origin with the direction vector 'vec'. The result is the vector from point 'pnt' to the projected point. NOTE: The result does not depend on the vector instance 'self'. NOTE: This method modifies the vector instance 'self'. projectToPlane(Vector,Vector) projects the vector on a plane defined by a base point and a normal distanceToPoint(Vector) returns the distance to another point distanceToLine(Vector,Vector) returns the distance between this vector and a line defined by a base point and a direction distanceToLineSegment(Vector,Vector) returns the distance between this vector and a line segment defined by a base point and a direction distanceToPlane(Vector,Vector) returns the distance between this vector and a plane defined by a base point and a normal Length([Float]) -> Float gets or sets the length of this vector x([Float]) -> Float gets or sets the X component of this vector y([Float]) -> Float gets or sets the Y component of this vector z([Float]) -> Float gets or sets the Z component of this vector public: VectorPy(const Vector3d & vec, PyTypeObject *T = &Type) :PyObjectBase(new Vector3d(vec),T){} VectorPy(const Vector3f & vec, PyTypeObject *T = &Type) :PyObjectBase(new Vector3d(vec.x,vec.y,vec.z),T){} Vector3d value() const { return *(getVectorPtr()); }