Vector3.isEqualTo()

Return true if this vector is equal to (scalar,scalar,scalar) or false otherwise

Parameters

NameTypeDescription
1scalarnumber

Return value

boolean

The result of the test

Usage

import {Vector3} from '@lcluber/type6js';

let vector1 = new Vector3(0,1,0);
let vector2 = new Vector3(1,1,1);
console.log(vector1.isEqualTo(1)); //false
console.log(vector2.isEqualTo(1)); //true