Vector API/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
Los vectores se utilizan en todas partes en FreeCAD. |
|||
⚫ | |||
Vectors are used everywhere in FreeCAD. |
Vectors are used everywhere in FreeCAD. |
||
Ejemplo: |
|||
Example: |
|||
{{Code|code= |
|||
<pre> |
|||
v=FreeCAD.Vector() |
v=FreeCAD.Vector() |
||
v=FreeCAD.Vector(1,0,0) |
v=FreeCAD.Vector(1,0,0) |
||
Line 9: | Line 15: | ||
v3 = v.add(v2) |
v3 = v.add(v2) |
||
print v3.Length |
print v3.Length |
||
}} |
|||
⚫ | |||
<div class="mw-translate-fuzzy"> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{APIFunction|scale|Float,Float,Float|Same as multiply but lets specify different values for x, y and z directions.|nothing.}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
{{APIFunction/es|scale|Float,Float,Float|Lo mismo que multiplicar pero permite especificar valores diferentes para las direcciones X, Y y Z.|Nada.}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</div> |
|||
{{Userdocnavi{{#translation:}}}} |
|||
⚫ | |||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
{{clear}} |
{{clear}} |
||
⚫ |
Latest revision as of 14:32, 18 November 2023
Los vectores se utilizan en todas partes en FreeCAD.
Vectors are used everywhere in FreeCAD.
Ejemplo:
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
Descripción:
Devuelve: La distancia entre el vector y una línea entre el Vector1 y Vector2.
Descripción:
Devuelve: La distancia entre el vector y un plano definido por un punto y una normal.
Descripción: Proyecta el vector sobre una línea entre Vector1 y Vector2.
Devuelve: Nada.
Descripción: Proyecta el vector sobre un plano definido por un punto y una normal.
Devuelve: Nada.
Descripción: Lo mismo que multiplicar pero permite especificar valores diferentes para las direcciones X, Y y Z.
Devuelve: Nada.
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub