@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.
9 lines (8 loc) • 388 B
TypeScript
import type { ArrayVector3D } from "./types.js";
/**
* Checks if two 3D vectors are opposite.
* @param {ArrayVector3D} xyz1 - First vector as `[x, y, z]`
* @param {ArrayVector3D} xyz2 - Second vector as `[x, y, z]`
* @returns {boolean} `true` if the vectors are opposite, `false` otherwise
*/
export declare const isOpposite3D: (xyz1: ArrayVector3D, xyz2: ArrayVector3D) => boolean;