45° and 90° are inverted with 270° and 315°def angle(u, v=Vector(1, 0, 0), normal=Vector(0, 0, 1)):
"""Return the angle in radians between the two vectors.
45° result -0.785 radians
90° result -1.570 radians with Vector(0,10,0) provided
Code: Select all
OS: Debian GNU/Linux bullseye/sid (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18479 (Git)
Build type: Release
Branch: master
Hash: 8f72e1fde67c738fbbcdea0f176733f68e838d3b
Python version: 3.7.5rc1
Qt version: 5.13.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)