Skip to main content

unit

Function unit 

Source
pub fn unit<const N: usize>(a: [f64; N]) -> Option<[f64; N]>
Expand description

a scaled to unit length, or None if it has no finite, non-zero one.