Function ncollide_utils::center_reduce [] [src]

pub fn center_reduce<P>(pts: &mut [P]) -> (P::Vect::OuterProductType, P, bool) where P: Point, P::Vect: Vect + Outer, P::Vect::OuterProductType: Zero + Mul<P, Output=P> + Inv + Copy + Debug

Centers and reduces a set of data.

Returns the covariance matrix, the center of the data, and a boolean that is true if the operation succeeded (otherwise, the returned value as valid, by the input points are left unchanged).