Function glm::builtin::length
[−]
[src]
pub fn length<S: BaseFloat, T: GenFloatVec<S>>(x: T) -> S
Returns the length of vector x
, i.e., sqrt(x[0]^2 + x[1]^2 + ...)
.
Example
assert_eq!(glm::length(glm::vec2(3., 4.)), 5.);