https://github.com/FreeCAD/FreeCAD/blob ... #L873-L945
Is this documented somewhere on the Wiki already?
If not, is the Expressions page where you would expect to find this information?
I'm offering to document this somewhere, but wanted to have a quick discussion on the forum first.
Create
Function arguments are delimited by a semi-colon (";").
- Create a vector - create(<<vector>>; 2; 1; 2)
- Create a matrix - create(<<matrix>>; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0; 0)
- Create a rotation - create(<<rotation>>; create(<<vector>>; 0; 1; 0); 45)
- Create a placement - create(<<placement>>; create(<<vector>>; 2; 1; 2); create(<<rotation>>, create(<<vector>>, 0, 1, 0), 45))
- Create a tuple - tuple(2; 1; 2)
- Create a list - list(2; 1; 2)
Various mathematical operations with the above structures are supported through standard mathematical operators such as:
- ^ - to raise to a power
- * - to multiply two entities
- mscale - scale a matrix
- minvert - invert a matrix
Full List of Functions in Source Code:
https://github.com/FreeCAD/FreeCAD/blob ... 2350-L2436
Full List of Create Types in Source Code:
https://github.com/FreeCAD/FreeCAD/blob ... 2077-L2086