Function vecmath::vec2_scale [-] [+] [src]

pub fn vec2_scale<T>(a: Vector2<T>, b: T) -> Vector2<T> where T: Copy + Mul<T, Output=T>

Multiplies the vector with a scalar.