Vector API

From FreeCAD Documentation
Revision as of 22:56, 15 November 2014 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Vectors are used everywhere in FreeCAD.

Example:

v=FreeCAD.Vector()
v=FreeCAD.Vector(1,0,0)
v=FreeCAD.Base.Vector()
v2 = FreeCAD.Vector(3,2,-5)
v3 = v.add(v2)
print v3.Length


Length

Returns: returns the length of the vector.