Function nalgebra::linalg::givens::cancel_x

source ·
pub fn cancel_x<N: Real, S: Storage<N, U2>>(
    v: &Vector<N, U2, S>
) -> Option<(UnitComplex<N>, N)>
Expand description

Computes the rotation R required such that the x component of R * v is zero.

Returns None if no rotation is needed (i.e. if v.x == 0). Otherwise, this returns the norm of v and the rotation r such that R * v = [ 0.0, |v| ]^t where |v| is the norm of v.