Equals
Determines if the given vector is exactly equal to this vector.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Equals(Object)
Determines if the given vector is exactly equal to this vector.
public override bool Equals(object other)
Parameters
The vector to compare.
Returns
Type | Description |
|---|---|
| bool | True if the given vector 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(Vector2)
Checks if the given vector is exactly equal to this vector.
public bool Equals(Vector2 other)
Parameters
The vector to compare.
Returns
Type | Description |
|---|---|
| bool | True if the given vector is exactly equal to this vector. |