Equals
Returns true if the f16 is equal to a given f16, false otherwise.
阅读时间1 分钟最后更新于 17 天前
Definition
- Type: Method
- Namespace: Unity.Burst.Intrinsics
- Assembly: UnityEngine.BurstModule
Equals(f16)
Returns true if the f16 is equal to a given f16, false otherwise.
public bool Equals(f16 rhs)
Parameters
The half to compare with this instance.
Returns
Type | Description |
|---|---|
| bool | True 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 .
f16Returns
Type | Description |
|---|---|
| bool | True if the specified object is equal to the current instance. Otherwise, false. |
Remarks
This method unboxes to before comparing. If is null, it throws a . If is any other type, it throws an .
of16oNullReferenceExceptionoInvalidCastException