Skip to content

format

typescript
Vector3.EqualsTo(lhs, rhs)

class: Vector3

description

Check if two Vector3 objects are equal.

parameter

param_nametypedescription
lhsVector3Vector 1
rhsVector3Vector 2

return

typedescription
booleanWhether the two Vector3 objects are equal.

code example

typescript
let a = new Vector3(1,2,3);
let b = new Vector3(3,4,5);
Debug.Log("Is a and b equal?", Vector3.EqualsTo(a,b));