Direction angle (radians) from a to b.
(a: [f64; 2], b: [f64; 2])
| 280 | |
| 281 | /// Direction angle (radians) from a to b. |
| 282 | fn direction(a: [f64; 2], b: [f64; 2]) -> f64 { |
| 283 | (b[1] - a[1]).atan2(b[0] - a[0]) |
| 284 | } |
| 285 | |
| 286 | /// Convert a BoundingBox to a Polygon. |
| 287 | fn bbox_to_polygon(bb: &BoundingBox) -> Geometry { |