thebookofshaders/glossary/equal
Kvmilos edb0e29f8a unified the singular/plural forms 2025-02-09 14:57:23 +01:00
..
README-ua.md add ukrainian translation 2023-08-06 20:36:42 +03:00
README-vi.md Translate the glossary section 2020-07-30 16:34:42 +07:00
README.md unified the singular/plural forms 2025-02-09 14:57:23 +01:00

README.md

Equal

Perform a component-wise equal-to comparison of two vectors

Declaration

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

bvec2 equal(ivec2 x, ivec2 y)  
bvec3 equal(ivec3 x, ivec3 y)  
bvec4 equal(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

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

See Also

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