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.

11 lines (10 loc) 371 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isZero3D = void 0; /** * Checks if a 3D vector is zero. * @param {ArrayVector3D} xyz - Vector as `[x, y, z]` * @returns {boolean} `true` if the vector is zero, `false` otherwise */ const isZero3D = (xyz) => xyz[0] === 0 && xyz[1] === 0 && xyz[2] === 0; exports.isZero3D = isZero3D;