VectorExtensions.IsValidVector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| IsValidVector(Vector2) |
Validates that each 2D vector components is a number and is not infinite. |
| IsValidVector(Vector3) |
Validates that each 3D vector components is a number and is not infinite. |
IsValidVector(Vector2)
Validates that each 2D vector components is a number and is not infinite.
public static bool IsValidVector(this UnityEngine.Vector2 vector);
static member IsValidVector : UnityEngine.Vector2 -> bool
<Extension()>
Public Function IsValidVector (vector As Vector2) As Boolean
Parameters
- vector
- UnityEngine.Vector2
The 2D vector whose components will be tested.
Returns
true is all 2D vector components are a numbers and are not infinite, otherwise false.
Applies to
IsValidVector(Vector3)
Validates that each 3D vector components is a number and is not infinite.
public static bool IsValidVector(this UnityEngine.Vector3 vector);
static member IsValidVector : UnityEngine.Vector3 -> bool
<Extension()>
Public Function IsValidVector (vector As Vector3) As Boolean
Parameters
- vector
- UnityEngine.Vector3
The 3D vector whose components will be tested.
Returns
true is all 3D vector components are a numbers and are not infinite, otherwise false.