Function glm::builtin::exp [] [src]

pub fn exp<F: BaseFloat, T: GenFloat<F>>(x: T) -> T

Returns the natural exponentiation of x. i.e., ex.

Example

use glm::{ exp, ApproxEq };
use glm::ext::e;

let e1: f32 = e();
let e2 = e1 * e1;
assert!(exp(2.).is_close_to(&e2, 0.000001));