Skip to content

vec4IsClose

vec4IsClose(a, b, tolerance): boolean

Defined in: math-linear/src/vec4.ts:130

Component-wise approximate equality.

Not transitive, so it is not an equality in the sense a Set or Map needs, and never a basis for ordering — use vec4Equals there. tolerance is required: a vector carries no units of its own, so only the caller knows what counts as close.

Vec4

Vec4

IsCloseToOptions

boolean