Function glm::builtin::lessThanEqual
[−]
[src]
pub fn lessThanEqual<T: Primitive, B: GenBVec, V: VecRel<T, B>>(x: V, y: V) -> B
Returns the component-wise compare of x ≤ y
.
Example
use glm::*; let a = ivec4(1, 2, 3, 4); let b = ivec4(2, 2, 3, 3); assert_eq!(lessThanEqual(a, b), bvec4(true, true, true, false)); assert_eq!(lessThanEqual(a, b), not(greaterThan(a, b)));