linearly v0.32.0Docs


linearly v0.32.0 / vec2 / step

Function: step()

step(edge, v): vec2

Apply a step function by comparing two values

Parameters

edge: number | vec2

The location of the edge of the step function.

v: vec2

The value to be used to generate the step function.

Returns

vec2

See

https://registry.khronos.org/OpenGL-Refpages/gl4/html/step.xhtmlopen in new window

Defined in

src/vec2.ts:662open in new window