Rot

Trait Rot 

Source
pub trait Rot: Sized {
    // Required method
    fn rot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>(
        x: &mut V,
        y: &mut W,
        cos: &Self,
        sin: &Self,
    );
}
Expand description

Applies a Givens rotation matrix to a pair of vectors, where cos is the value of the cosine of the angle in the Givens matrix, and sin is the sine.

Required Methods§

Source

fn rot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W, cos: &Self, sin: &Self, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Rot for f32

Source§

fn rot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W, cos: &f32, sin: &f32, )

Source§

impl Rot for f64

Source§

fn rot<V: ?Sized + Vector<Self>, W: ?Sized + Vector<Self>>( x: &mut V, y: &mut W, cos: &f64, sin: &f64, )

Implementors§