Function glm::builtin::isinf [] [src]

pub fn isinf<F: BaseFloat, B: GenBType, T: NumBoolRel<F, B>>(x: T) -> B

Returns true if x holds a positive infinity or negative infinity. Returns false otherwise.

Example

use num::Float;

let inf: f32 = Float::infinity();
assert!(glm::isinf(inf));
assert_eq!(glm::isinf(glm::vec2(inf, 0.)), glm::bvec2(true, false));