format
typescript
Ray.EqualsTo(lhs, rhs)class: Ray
description
This is a static function that determines whether two Rays are equal.
parameter
| param_name | type | description |
|---|---|---|
| lhs | Ray | Ray 1 |
| rhs | Ray | Ray 2 |
return
| type | description |
|---|---|
boolean | Whether 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);