uniform
Generates a uniformly distributed random point inside the Box.
Return
A Vector3 representing a random point within the Box.
Parameters
An optional random number generator to use. Defaults to Random.Default.
Generates a uniformly distributed random point within the Circle.
Return
A Vector2 representing a random point within the Circle.
Parameters
An optional random number generator to use. Defaults to Random.Default.
Generates a uniformly distributed random point within the Rectangle.
Return
A Vector2 representing a random point within the Rectangle.
Parameters
An optional random number generator to use. Defaults to Random.Default.
Generates a list of 2D points distributed uniformly over a collection of triangles.
Return
A list of uniformly distributed 2D points over the triangles.
Parameters
The number of random points to generate.
An optional random number generator to use. Defaults to Random.Default.
Generates a uniformly distributed random point within the Triangle.
Return
A Vector2 representing a random point within the Triangle.
Parameters
An optional random number generator to use. Defaults to Random.Default.