Skip to content

Function: areSameVectors() ​

ts
function areSameVectors(first: Readonly<Vector>, second: Readonly<Vector>): boolean;

Check whether two 3D vectors have exactly equal coordinates.

Parameters ​

ParameterTypeDescription
firstReadonly<Vector>First vector.
secondReadonly<Vector>Second vector.

Returns ​

boolean

Whether all coordinates are equal with ===.