Skip to content

format

typescript
Vector4.EqualsTo(other)

class: Vector4

description

Determines whether the current Vector4 is equal to the target Vector4.

parameter

param_nametypedescription
otherVector4The target Vector4.

reture

typedescription
booleanTrue if the two Vector4 objects are equal; otherwise, false.

code example

typescript
let v4 = new Vector4(1, 2, 3, 4);
let other = new Vector4(1, 2, 3, 4);
Debug.Log(v4.EqualsTo(other)); // true