Summary
Generates a random point in 2D space within the specified region.
- Namespace
- StrideToolkit
.Mathematics - Containing Type
- RandomExtensions
Syntax
public static Vector2 NextPoint(this Random random, RectangleF region)
Parameters
| Name | Type | Description |
|---|---|---|
| random | Random | An instance of Random. |
| region | RectangleF | A 2D region in which point is generated. |
Return Value
| Type | Description |
|---|---|
| Vector2 | A random point in 2D space within the specified region. |
