UNPKG

@fimbul-works/vec

Version:

A comprehensive TypeScript vector math library providing 2D, 3D, and 4D vector operations with a focus on performance and type safety.

10 lines (9 loc) 528 B
import type { ArrayVector4D } from "./types.js"; /** * Checks if two 4D vectors are approximately equal within epsilon. * @param {ArrayVector4D} xyzw1 - First vector as `[x, y, z, w]` * @param {ArrayVector4D} xyzw2 - Second vector as `[x, y, z, w]` * @param {number} epsilon - Maximum difference (default: `Number.EPSILON`) * @returns {boolean} `true` if vectors are approximately equal, `false` otherwise */ export declare const isEqualApprox4D: (xyzw1: ArrayVector4D, xyzw2: ArrayVector4D, epsilon?: number) => boolean;