Vector API/de: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
>>> |
|||
⚫ | |||
{{VeryImportantMessage|(Oktober 2019) Bearbeite diese Seiten nicht. Die Informationen sind unvollständig und veraltet. Die neueste API findest Du in der [https://www.freecadweb.org/api autogenerierten API-Dokumentation] oder generiere die Dokumentation selbst, siehe [[Source documentation/de|Quelldokumentation]].}} |
{{VeryImportantMessage|(Oktober 2019) Bearbeite diese Seiten nicht. Die Informationen sind unvollständig und veraltet. Die neueste API findest Du in der [https://www.freecadweb.org/api autogenerierten API-Dokumentation] oder generiere die Dokumentation selbst, siehe [[Source documentation/de|Quelldokumentation]].}} |
||
Line 21: | Line 19: | ||
{{APIFunction|cross|Vector|the crossproduct between this vector and another.|vector}} |
{{APIFunction|cross|Vector|the crossproduct between this vector and another.|vector}} |
||
{{APIFunction|distanceToLine|Vector1,Vector2|the distance between the vector and a line through Vector1 in direction Vector2.|float}} |
{{APIFunction|distanceToLine|Vector1,Vector2|the distance between the vector and a line through Vector1 in direction Vector2.|float}} |
||
{{APIFunction|distanceToPoint| |
{{APIFunction|distanceToPoint|Vector|the distance between this vector and another.|float}} |
||
{{APIFunction|distanceToLineSegment|Vector1,Vector2|a vector to the closest point on a line segment from Vector1 to Vector2.|Vector}} |
{{APIFunction|distanceToLineSegment|Vector1,Vector2|a vector to the closest point on a line segment from Vector1 to Vector2.|Vector}} |
||
{{APIFunction|distanceToPlane|Vector1,Vector2|the distance between the vector and a plane defined by a point and a normal.|float}} |
{{APIFunction|distanceToPlane|Vector1,Vector2|the distance between the vector and a plane defined by a point and a normal.|float}} |
||
{{APIFunction|dot|Vector|the dot product between 2 vectors.|float}} |
{{APIFunction|dot|Vector|the dot product between 2 vectors.|float}} |
||
{{APIFunction|getAngle|Vector|the angle in radians between this vector and another.|float}} |
{{APIFunction|getAngle|Vector|the angle in radians between this vector and another.|float}} |
||
{{APIFunction|isEqual| |
{{APIFunction|isEqual|Vector2,tolerance|Checks if the distance between the points represented by this Vector and Vector2 is less than or equal to the given tolerance.|True/False}} |
||
{{APIFunction|isNormal|Vector2,tolerance|Checks if this Vector is normal to Vector2 within the tolerance.|True/False}} |
|||
{{APIFunction|isOnLineSegment|Vector1,Vector2|Checks if this vector is on the line segment generated by Vector1 and Vector2.|Vector}} |
{{APIFunction|isOnLineSegment|Vector1,Vector2|Checks if this vector is on the line segment generated by Vector1 and Vector2.|Vector}} |
||
{{APIFunction|isParallel|Vector2,tolerance|Checks if this Vector is parallel to Vector2 within the tolerance.|True/False}} |
|||
{{APIFunction|multiply|Float|multiplies (uniform scale) a vector by the given factor.|nothing}} |
{{APIFunction|multiply|Float|multiplies (uniform scale) a vector by the given factor.|nothing}} |
||
{{APIFunction|negative|Vector|Returns the negative (opposite) of this vector.|Vector}} |
{{APIFunction|negative|Vector|Returns the negative (opposite) of this vector.|Vector}} |
Latest revision as of 16:51, 15 January 2024
Vektoren werden überall in FreeCAD benutzt.
Beispiel:
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: the distance between the vector and a line through Vector1 in direction Vector2.
Returns: float
Description: a vector to the closest point on a line segment from Vector1 to Vector2.
Returns: Vector
Description: the distance between the vector and a plane defined by a point and a normal.
Returns: float
Description: Checks if the distance between the points represented by this Vector and Vector2 is less than or equal to the given tolerance.
Returns: True/False
Description: Checks if this Vector is normal to Vector2 within the tolerance.
Returns: True/False
Description: Checks if this vector is on the line segment generated by Vector1 and Vector2.
Returns: Vector
Description: Checks if this Vector is parallel to Vector2 within the tolerance.
Returns: True/False
Description: multiplies (uniform scale) a vector by the given factor.
Returns: nothing
Description: projects the vector on a line through Vector1 in direction Vector2.
Returns: nothing
Description: projects the vector on a plane defined by a point (Vector1) and a normal (Vector2).
Returns: nothing
Description: Same as multiply but lets specify different values for x, y and z directions. (non-uniform scale)
Returns: nothing
- Erste Schritte
- Installation: Herunterladen, Windows, Linux, Mac, Zusätzlicher Komponenten, Docker, AppImage, Ubuntu Snap
- Grundlagen: Über FreeCAD, Graphische Oberfläche, Mausbedienung, Auswahlmethoden, Objektname, Programmeinstellungen, Arbeitsbereiche, Dokumentstruktur, Objekteigenschaften, Hilf FreeCAD, Spende
- Hilfe: Tutorien, Video Tutorien
- Arbeitsbereiche: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework