format
typescript
Frustum.EqualsTo(other)class: Frustum
description
Checks if the current frustum is equal to the target frustum.
Returns true if all elements of the two planes are exactly equal. Taking into account floating-point errors, if the difference between the two vectors is less than 1e-5, they are considered equal.
parameter
| param_name | type | description |
|---|---|---|
| other | Frustum | The target frustum. |
reture
| type | description |
|---|---|
boolean | True if the current frustum is equal to the target frustum. |
code example
typescript
let frustum = new Frustum();
let other = new Frustum();
if(frustum.EqualsTo(other)){
Debug.Log("frustum equals to other");
}