Function glm::builtin::exp2
[−]
[src]
pub fn exp2<F: BaseFloat, T: GenFloat<F>>(x: T) -> T
Returns 2
raised to the power of x
. i.e., 2x.
Example
use glm::{ exp2, dvec2 }; assert_eq!(exp2(10_f32), 1024.); assert_eq!(exp2(dvec2(-1., 5.)), dvec2(0.5, 32.));