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