Home | Trees | Indices | Help |
|
---|
|
1 from . import (map_hat_2d, contract, np, angle_from_rot2d, 2 rotation_from_axis_angle, hat_map, rot2d) 913 direction = np.array([1, 0, 0]) 14 vector = np.dot(b, direction) 15 n = np.linalg.norm(vector) 16 atol = 1e-8 # XXX: make common 17 if n < atol: 18 return rot2d(0) 19 else: 20 theta = np.arctan2(vector[1], vector[0]) 21 return rot2d(theta)22 28 33
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Feb 22 20:39:25 2012 | http://epydoc.sourceforge.net |