/// Gets the sin of an altitude
///
/// E.g., Receives the `z` component of a direction
/// (if the vector is normalized) and returns the row towards which that
/// vector is pointing.
Gets the sin of an altitude
E.g., Receives the `z` component of a direction
(if the vector is normalized) and returns the row towards which that
vector is pointing.
Gets the sin of an altitude E . g . Receives the ` z ` component of a direction ( if the vector is normalized ) and returns the row towards which that vector is pointing .
fn sin_altitude_to_row(&self, sin_altitude: Float) -> usize {
        if sin_altitude < 0. {
            // Points ot the ground... This should be handled in the caller function.
            panic!("Trying to call sin_altitude_to_row() by using a negative sin_altitude (e.g., does not point to the sky")
        }
        for (row, max_sin) in self.row_max_sin.iter().enumerate() {
            if sin_altitude < *max_sin {
                return row;
            }
        }
        self.n_rows - 1
    }
fn sin_altitude_to_row ( & self , sin_altitude : Float ) -> usize { if sin_altitude < 0. { // Points ot the ground... This should be handled in the caller function. panic ! ( " " ) } for ( row , max_sin ) in self . row_max_sin . iter ( ) . enumerate ( ) { if sin_altitude < * max_sin { return row ; } } self . n_rows - 1 }
Gets the sin of an altitude
E.g., Receives the `z` component of a direction
(if the vector is normalized) and returns the row towards which that
vector is pointing.
Gets the sin of an altitude E . g . Receives the ` z ` component of a direction ( if the vector is normalized ) and returns the row towards which that vector is pointing .
&self
sin_altitude
Float