fn prev_ix(&self, i: usize) -> usize {
        if i == 1 {
            self.elements.len() - 1
        } else {
            i - 1
        }
    }
/// The previous element.
///
/// This always gives a result as if the curve were closed, without checking
/// if that's the case.
The previous element.
This always gives a result as if the curve were closed, without checking
if that's the case.
The previous element . This always gives a result as if the curve were closed without checking if that ' s the case .
fn prev_ix(&self, i: usize) -> usize {
        if i == 1 {
            self.elements.len() - 1
        } else {
            i - 1
        }
    }
fn prev_ix ( & self , i : usize ) -> usize { if i == 1 { self . elements . len ( ) - 1 } else { i - 1 } }
The previous element.
The previous element .
&self
i
usize
&self
i
usize