Function glm::builtin::isnan
[−]
[src]
pub fn isnan<F: BaseFloat, B: GenBType, T: NumBoolRel<F, B>>(x: T) -> B
Returns true
if x
holds a NaN. Returns false
otherwise.
Example
use glm::{ bvec3, dvec3, isnan }; use num::Float; let nan: f64 = Float::nan(); assert!(isnan(nan)); assert_eq!(isnan(dvec3(nan, 1., -0.)), bvec3(true, false, false));