Skip to content

vec2IsClose

vec2IsClose(a, b, tolerance): boolean

Defined in: math-linear/src/vec2.ts:148

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 vec2Equals there. tolerance is required: a vector carries no units of its own, so only the caller knows what counts as close.

Vec2

Vec2

IsCloseToOptions

boolean