format
typescript
Vector4.EqualsTo(other)class: Vector4
description
Determines whether the current Vector4 is equal to the target Vector4.
parameter
| param_name | type | description |
|---|---|---|
| other | Vector4 | The target Vector4. |
reture
| type | description |
|---|---|
boolean | True 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