format
typescript
Vector3.EqualsTo(other)class: Vector3
description
Determines whether the current Vector3 is equal to the target Vector3.
parameter
| param_name | type | description |
|---|---|---|
| other | Vector3 | The target Vector3. |
reture
| type | description |
|---|---|
boolean | True if the two Vector3 objects are equal; otherwise, false. |
code example
typescript
let v3 = new Vector3(1,2,3);
let other = new Vector3(3,4,5);
Debug.Log("Is a and b equal?",v3.EqualsTo(other));