rhb-server/mes-ui/rhb-app/node_modules/gl-vec3/exactEquals.js
2025-10-20 11:14:41 +08:00

13 lines
389 B
JavaScript

module.exports = exactEquals
/**
* Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
*
* @param {vec3} a The first vector.
* @param {vec3} b The second vector.
* @returns {Boolean} True if the vectors are equal, false otherwise.
*/
function exactEquals(a, b) {
return a[0] === b[0] && a[1] === b[1] && a[2] === b[2]
}