Function ncollide_utils::maximize_with_newton [] [src]

pub fn maximize_with_newton<N, V, M, F: Fn(&V) -> N, D: Fn(&V) -> (V, M)>(niter: usize, num_guesses: usize, domain_min: &V, domain_max: &V, f: &mut F, df: &mut D) -> (V, N) where N: Scalar, V: Add<V, Output=V> + Sub<V, Output=V> + Mul<V, Output=V> + Clone + Rand + POrd + Copy, M: Inv + Mul<V, Output=V> + Copy

Maximizes a real function using the Newton method.