lt
constlt:DualFn<<T>(lhs,rhs) =>TextendsAnyVec2Instance?v2b:TextendsAnyVec3Instance?v3b:v4b>
Defined in: packages/typegpu/src/std/boolean.ts:99
Checks component-wise whether lhs < rhs.
This function does not return bool, for that use-case, wrap the result in all.
Example
Section titled βExampleβlt(vec2f(0.0, 0.0), vec2f(0.0, 1.0)) // returns vec2b(false, true)lt(vec3u(0, 1, 2), vec3u(2, 1, 0)) // returns vec3b(true, false, false)all(lt(vec4i(1, 2, 3, 4), vec4i(2, 3, 4, 5))) // returns true