Skip to main content

point_to_ring_screen_dist

Function point_to_ring_screen_dist 

Source
pub fn point_to_ring_screen_dist(
    cursor: Vec2,
    camera: &Camera,
    cam_tf: &GlobalTransform,
    center: Vec3,
    normal: Vec3,
    radius: f32,
) -> f32
Expand description

Minimum screen-space distance from a cursor position to a 3D ring projected onto screen.