Summary
Generates a random normalized 2D direction vector.
- Namespace
- StrideToolkit
.Mathematics - Containing Type
- RandomExtensions
Syntax
public static Vector2 NextDirection2D(this Random random)
Parameters
Name | Type | Description |
---|---|---|
random | Random | An instance of Random . |
Return Value
Type | Description |
---|---|
Vector2 |