Base: new Rotation constructor - on vectors

The new constructor accepts wanted directions of x,y,z axes of rotated
frame, and a priority string that affects how the vectors are made
perpendicular to each other.

Example - construct placement for sketch on XZ plane:

v = App.Vector
App.Rotation(v(1,0,0),v(0,0,1),v())
This commit is contained in:
DeepSOIC
2017-09-02 03:42:04 +03:00
committed by wmayer
parent f8feb18a07
commit 96f3f0fa26
4 changed files with 194 additions and 0 deletions

View File

@@ -25,6 +25,10 @@
-- three floats (Euler angles) as yaw-pitch-roll in XY'Z'' convention
-- four floats (Quaternion) where the quaternion is specified as:
q=xi+yj+zk+w, i.e. the last parameter is the real part
-- three vectors that define rotated axes directions + an optional
3-characher string of capital letters 'X', 'Y', 'Z' that sets the
order of importance of the axes (e.g., 'ZXY' means z direction is
followed strictly, x is used but corrected if necessary, y is ignored).
</UserDocu>
</Documentation>
<Methode Name="invert">