Skip to content

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_nametypedescription
otherFrustumThe target frustum.

reture

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