Method IsNaN
IsNaN(Vector2)
Checks if the Vector2 contains NaN for x or y.
Declaration
public static bool IsNaN(this Vector2 v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | v | Vector2 to check for NaN |
Returns
| Type | Description |
|---|---|
| bool | True, if any components of the vector are NaN |
IsNaN(Vector3)
Checks if the Vector2 contains NaN for x or y.
Declaration
public static bool IsNaN(this Vector3 v)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | v | Vector2 to check for NaN |
Returns
| Type | Description |
|---|---|
| bool | True, if any components of the vector are NaN |