Summary
Generates a random point in a circle of a given radius.
- Namespace
- StrideToolkit
.Mathematics - Containing Type
- RandomExtensions
Syntax
public static Vector2 PointInACircle(this Random random, float radius = 1)
Parameters
Name | Type | Description |
---|---|---|
random | Random | An instance of Random . |
radius | float | Radius of circle. Default 1.0f. |
Return Value
Type | Description |
---|---|
Vector2 | A random point in a circle of a given radius. |