Function segment_circle

Source
pub fn segment_circle<V: Copy + Into<[f32; 2]>>(
    start: V,
    end: V,
    center: V,
    radius: f32,
) -> Option<f32>
Expand description

Earliest segment/circle hit in [0, 1], including a stationary point inside. Useful for fast projectiles that cross a target between simulation ticks.