This is the Vector export class This class represents a 3D float vector add(Vector) - return the sum of the two vectors sub(Vector) - return the difference of the two vectors scale(Float,Float,Float) - scale (multiplies) this vector by a factor multiply(Float) - multiplies (scales) this vector by a single factor dot(Vector) - return the dot product of the two vectors cross(Vector) - return the cross product of the two vectors getAngle(Vector) - return the angle in radians between the two vectors Normalize the vector to the length of 1.0 Deliver the projection point to a given line Deliver the projection point to a given plane Deliver the distance of the point to a given line Deliver the distance of the point to a given plane To read or modifiy the length of the vector The X component of the vector The Y component of the vector The Z component of the 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()); }