[−][src]Function rin::math::givens::cancel_y
pub fn cancel_y<N, S>(v: &Matrix<N, U2, U1, S>) -> Option<(Unit<Complex<N>>, N)> where
N: Real,
S: Storage<N, U2, U1>,
Computes the rotation R
required such that the y
component of R * v
is zero.
Returns None
if no rotation is needed (i.e. if v.y == 0
). Otherwise, this returns the norm
of v
and the rotation r
such that R * v = [ |v|, 0.0 ]^t
where |v|
is the norm of v
.