Equals
Checks if the given object is exactly equal to this vector.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Equals(Object)
Checks if the given object is exactly equal to this vector.
public override bool Equals(object other)
Parameters
The object to check.
Returns
Type | Description |
|---|---|
| bool | True if the given object is exactly equal to this vector. |
Remarks
Due to floating point inaccuracies, this might return false for vectors which are essentially (but not exactly) equal. Use the == operator to test two vectors for approximate equality.
Equals(Vector3)
Checks if the given vector is exactly equal to this vector.
public bool Equals(Vector3 other)
Parameters
The vector to check.
Returns
Type | Description |
|---|---|
| bool | True if the given vector is exactly equal to this vector. |