Function glm::builtin::fma [] [src]

pub fn fma<F: BaseFloat, T: GenFloat<F>>(a: T, b: T, c: T) -> T

Computes and returns a * b + c.

Example

use glm::{ fma, vec3 };
assert_eq!(fma(1.5_f32, 2.25, 3.125), 6.5);
let a = vec3(-1., 2., 3.);
let b = vec3(4., 5., 6.);
let c = vec3(7., 8., 0.);
assert_eq!(fma(a, b, c), vec3(3., 18., 18.));