Expand description
This module contains tools related to random sampling.
To use this, the “rand” feature must be enabled.
Modules§
- The
ShapeSampletrait, allowing random sampling from geometric shapes. - This module holds local implementations of the
Distributiontrait forStandard, which allow certain Bevy math types (those whose values can be randomly generated without additional input other than anRng) to be produced usingrand’s APIs. It also holdsFromRng, an ergonomic extension to that functionality which permits the omission of type annotations.
Structs§
- A wrapper struct that allows boundary sampling from a
ShapeSampletype directly as aDistribution. - A wrapper struct that allows interior sampling from a
ShapeSampletype directly as aDistribution.
Traits§
- Exposes methods to uniformly sample a variety of primitive shapes.