This is the Vector export class This class represents a 3D float vector add(Vector) returns the sum of this and another vector sub(Vector) returns the difference of this and another 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 projectToLine(Vector,Vector) projects the vector on a line defined by a base point and a direction projectToPlane(Vector,Vector) projects the vector on a plane defined by a base point and a normal 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()); }