Vector API/fr: Difference between revisions
(Updating to match new version of source page) |
(Created page with "Les Vectors (Vecteurs)sont utilisés partout en FreeCAD.") |
||
Line 1: | Line 1: | ||
Vectors |
Les Vectors (Vecteurs)sont utilisés partout en FreeCAD. |
||
Exemple: |
Exemple: |
Revision as of 21:00, 19 April 2015
Les Vectors (Vecteurs)sont utilisés partout en FreeCAD.
Exemple:
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
Description:
Returns: the distance between the vector and a line between Vector1 and Vector2.
Description:
Returns: the distance between the vector and a plane defined by a point and a normal.
Description: projects the vector on a line between Vector1 and Vector2.
Returns: nothing.
Description: projects the vector on a plane defined by a point and a normal.
Returns: nothing.
Description: Same as multiply but lets specify different values for x, y and z directions.
Returns: nothing.
Description: subtracts another vector from the first one.
Returns: the resulting vector.