Documentation

Unity Engine

Download Unity

Unity Engine

Equals

Returns true if the components of this quaternion4 equal those of another quaternion4.
Read time 1 minuteLast updated 4 hours ago

Definition

Equals(quaternion4)

Returns true if the components of this quaternion4 equal those of another quaternion4.
public bool Equals(quaternion4 q)

Parameters

The quaternion4 to compare with this one.

Returns

Type

Description

bool
true
if all 16 components are equal. Otherwise,
false
.

Remarks

The comparison is exact. It doesn't use a tolerance, and it doesn't treat
q
and its negation as the same rotation.

Equals(Object)

Determines whether this quaternion4 equals another object.
[ExcludeFromBurstCompatTesting("Takes managed object")]public override bool Equals(object o)

Parameters

The object to compare with this one.

Returns

Type

Description

bool
true
if
o
is a quaternion4 whose 16 components are all equal to those of this one. Otherwise,
false
, including when
o
is another type or
null
.