Skip to main content

ring_exit_along_ray

Function ring_exit_along_ray 

Source
pub fn ring_exit_along_ray(
    centroid: (f64, f64),
    angle: f64,
    ring_xy: &[(i32, f64, f64)],
    bonds: &[(i32, i32)],
) -> f64
Expand description

Distance from the ring centroid along angle to the ring perimeter.

Hits the first ring-bond segment the ray meets (a bond-gap exit). Falls back to inradius if the ray misses every segment.