thebookofshaders/glossary/lessThan
2020-07-30 16:34:42 +07:00
..
README-vi.md Translate the glossary section 2020-07-30 16:34:42 +07:00
README.md folder structure for glossary 2016-04-06 11:44:45 -04:00

LessThan

Perform a component-wise less-than comparison of two vectors

Declaration

bvec2 lessThan(vec2 x, vec2 y)  
bvec3 lessThan(vec3 x, vec3 y)    
bvec4 lessThan(vec4 x, vec4 y)  

bvec2 lessThan(ivec2 x, ivec2 y)  
bvec3 lessThan(ivec3 x, ivec3 y)  
bvec4 lessThan(ivec4 x, ivec4 y)

Parameters

x specifies the first vector to be used in the comparison operation.

y specifies the second vector to be used in the comparison operation.

Description

lessThan() returns a boolean vector in which each element i is computed as x[i] < y[i].

See Also

lessThanEqual(), greaterThan(), greaterThanEqual(), equal(), notEqual(), any(), all(), not()