libpysal.cg.get_angle_between¶
-
libpysal.cg.
get_angle_between
(ray1, ray2)[source]¶ Returns the angle formed between a pair of rays which share an origin get_angle_between(Ray, Ray) -> number
- Parameters
- ray1a ray forming the beginning of the angle measured
- ray2a ray forming the end of the angle measured
Examples
>>> get_angle_between(Ray(Point((0, 0)), Point((1, 0))), Ray(Point((0, 0)), Point((1, 0)))) 0.0