neurom.morphmath.angle_3points¶
-
neurom.morphmath.
angle_3points
(p0, p1, p2)[source]¶ compute the angle in radians between three 3D points
Calculated as the angle between p1-p0 and p2-p0.
Parameters: - p1, p2 (p0,) – indexable objects with
- 0, 1, 2 corresponding to 3D cartesian coordinates. (indices) –
Returns: Angle in radians between (p1-p0) and (p2-p0). 0.0 if p0==p1 or p0==p2.