Placement API
(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation], or generate the documentation yourself, see Source documentation.
In FreeCAD, Placement defines an object\'s position and rotation. The Placement concept is explained in detail here: Placement.
Example of setting a document object\'s Placement:
myObj = FreeCAD.ActiveDocument.ActiveObject
pl = FreeCAD.Placement()
pl.move(FreeCAD.Vector(2,0,0))
myObj.Placement = pl
{{APIClass|Placement| ) or (Placement) or (Matrix) or (Base, Rotation) or (Base,Rotation,Center) or (Base,Axis,Angle|Constructs a placement, empty or with the given arguments, or as a copy of the given placement.}}
{{APIProperty|Base|a vector representing the Placement's position.}}
{{APIProperty|Rotation|a quaternion representing the Placement's rotation.}}
{{APIFunction|inverse| |computes the inverse placement|a placement.}}
{{APIFunction|move|Vector|moves the Placement along the given vector|nothing}}
{{APIFunction|multVec|Vector|applies the Placement to the given vector|the resulting vector.}}
{{APIFunction|multiply|Placement|multiplies this placement with another one|the resulting placement.}}
{{APIFunction|toMatrix| | |a matrix representing the Placement's transformation.}}
⏵ documentation index > API > Poweruser Documentation > Placement API
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Placement_API.md