Skip to content

format

typescript
Quaternion.EqualsTo(other)

class: Quaternion

description

Determines whether the quaternion is approximately equal to the target quaternion.

parameter

param_nametypedescription
otherQuaternionThe target quaternion.

reture

typedescription
booleanTrue if the quaternions are approximately equal, otherwise false.

code example

typescript
let quaternion = new Quaternion(1,1,1,1);
let other = Quaternion.zero;
quaternion.EqualsTo(other);