Function glm::builtin::pow
[−]
[src]
pub fn pow<F: BaseFloat, T: GenFloat<F>>(x: T, y: T) -> T
Returns x
raised to the y
power, i.e., xy.
Results are undefined if x < 0
.
Results are undefined if x = 0
and y ≤ 0
.
Example
use glm::{ pow, vec3 }; assert_eq!(pow(2.0, 3.0), 8.0); let v1 = vec3(1.0, 2.0, 3.0); let v2 = vec3(1.0, 4.0, 27.0); assert_eq!(pow(v1, v1), v2);