Function glm::builtin::mix_s [] [src]

pub fn mix_s<F: BaseFloat, T: GenFloatVec<F>>(x: T, y: T, a: F) -> T

A variant of function mix that parameter a is a scalar.

Note

mix_s is not a GLSL function name. It is introduced because Rust does not support function name overloading.

Example

use glm::{ mix_s, dvec3 };

let x = dvec3(10., 20., 30.);
let y = dvec3(100., 200., 300.);
assert_eq!(mix_s(x, y, 0.5), dvec3(55., 110., 165.));