Skip to content

format

typescript
Ray.EqualsTo(other)

class: Ray

description

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

parameter

param_nametypedescription
otherRayThe target Ray.

reture

typedescription
booleanTrue 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);