Function graphics::math::separation

source ยท
pub fn separation<T>(ray: Ray<T>, v: Vec2d<T>) -> Vec2d<T>
where T: Float,
Expand description

Compute the shortest vector from point to ray. A ray stores starting point and directional vector.