Function glm::ext::sqlength
[−]
[src]
pub fn sqlength<F: BaseFloat, T: GenFloatVec<F>>(x: T) -> F
Returns the squre of the length of vector x
.
Example
use glm::*; use glm::ext::*; assert_eq!(sqlength(vec2(1., 2.)), 5.);