Skip to main content

unit_direction

Function unit_direction 

Source
pub fn unit_direction(direction: [f64; 3]) -> [f64; 3]
Expand description

The unit direction the search uses for direction (any finite, non-zero vector), computed exactly as in LatticeSearch::search_into, so that a caller can evaluate path_metrics on other points with the same bits.