Menu

Commit [r22521]  Maximize  Restore  History

Merged revisions 22518-22520 via svnmerge from

svn+ssh://bugman@.../svn/relax/trunk

........
r22518 | bugman | 2014-03-21 15:22:38 +0100 (Fri, 21 Mar 2014) | 6 lines

Created the new vector_angle() library function.

This is located in the lib.geometry.vectors module. The function will calculate the angle between
two vectors with sign or direction using the atan2() function.
........
r22519 | bugman | 2014-03-21 17:26:06 +0100 (Fri, 21 Mar 2014) | 3 lines

Addition of a number of unit tests for the new lib.geometry.vectors.vector_angle() function.
........
r22520 | bugman | 2014-03-21 17:29:24 +0100 (Fri, 21 Mar 2014) | 7 lines

Changes to the lib.geometry.vectors.vector_angle() function.

This now expects the normal of the plane in which the angle is defined. The original logic was not
functional, therefore the angle is forced to be negative if the cross product between the two
vectors points in the opposite direction as the normal.
........

bugman 2014-03-21

changed /branches/double_rotor
changed /branches/double_rotor/lib/geometry/vectors.py
changed /branches/double_rotor/test_suite/unit_tests/_lib/_geometry/__init__.py
copied /trunk/test_suite/unit_tests/_lib/_geometry/test_vectors.py -> /branches/double_rotor/test_suite/unit_tests/_lib/_geometry/test_vectors.py
/branches/double_rotor/lib/geometry/vectors.py Diff Switch to side-by-side view
Loading...
/branches/double_rotor/test_suite/unit_tests/_lib/_geometry/__init__.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.