@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.
8 lines (7 loc) • 357 B
JavaScript
/**
* Checks if two 3D vectors are equal.
* @param {ArrayVector3D} xyz1 - First vector as `[x, y, z]`
* @param {ArrayVector3D} xyz2 - Second vector as `[x, y, z]`
* @returns {ArrayVector3D} `true` if the vectors are equal, `false` otherwise
*/
export const isEqual3D = (xyz1, xyz2) => xyz1[0] === xyz2[0] && xyz1[1] === xyz2[1] && xyz1[2] === xyz2[2];