文档

Unity Engine

Download Unity

Unity Engine

Equals

Returns true if the f16 is equal to a given f16, false otherwise.
阅读时间1 分钟最后更新于 17 天前

Definition

Equals(f16)

Returns true if the f16 is equal to a given f16, false otherwise.
public bool Equals(f16 rhs)

Parameters

rhs

The half to compare with this instance.

Returns

Type

Description

boolTrue if the specified half is equal to this instance. Otherwise, false.

Equals(Object)

Returns true if the half is equal to a given half, false otherwise.
public override bool Equals(object o)

Parameters

The object to compare with the current instance. It must be a boxed
f16
.

Returns

Type

Description

boolTrue if the specified object is equal to the current instance. Otherwise, false.

Remarks

This method unboxes
o
to
f16
before comparing. If
o
is null, it throws a
NullReferenceException
. If
o
is any other type, it throws an
InvalidCastException
.