Function glm::builtin::sqrt [] [src]

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

Returns the square root of x. i.e., the value sqrt(x).

Results are undefined if x < 0.

Example

use glm::{ sqrt, vec2 };
assert_eq!(sqrt(vec2(64., 1.)), vec2(8., 1.));