Skip to content

format

typescript
Ray.EqualsTo(lhs, rhs)

class: Ray

description

This is a static function that determines whether two Rays are equal.

parameter

param_nametypedescription
lhsRayRay 1
rhsRayRay 2

return

typedescription
booleanWhether the two Rays are equal

code example

typescript
 const ray1 = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 1));
 const ray2 = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 1));
 const equal = Ray.EqualsTo(ray1,ray2);