Skip to content

vec3IsClose

vec3IsClose(a, b, tolerance): boolean

Defined in: math-linear/src/vec3.ts:195

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

Vec3

Vec3

IsCloseToOptions

boolean