Function scale2

Source
pub fn scale2<T>(a: [T; 2], b: T) -> [T; 2]
where T: Copy + Mul<Output = T>,
Expand description

Multiplies the vector with a scalar.