|
From: Bruce S. <Bru...@nc...> - 2004-07-23 13:36:21
|
I forgot to mention two new vector functions that Jonathan Brandmeyer introduced into the new Boost-based VPython: There are two new functions to use with vectors: vec1.diff_angle(vec2) returns the angle (in radians) between vectors vec1 and vec2. You can convert a vector to a tuple by tuple(vec1) or by the much faster option vec1.as_tuple(). Bruce P.S. The "Recent developments" section of http://vpython.org contains a log of changes, so you can always look there to see what's new. |