format
typescript
Ray.EqualsTo(other)class: Ray
description
Determines whether the current Ray is equal to the target Ray.
parameter
| param_name | type | description |
|---|---|---|
| other | Ray | The target Ray. |
reture
| type | description |
|---|---|
boolean | True if the Rays are equal, otherwise false. |
code example
typescript
const ray = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 1));
const other = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 1));
const equal = ray.EqualsTo(other);