uniformSub
Generates a uniformly distributed sub-box based on random parameters within specified ranges.
Return
A new Box
that represents the sub-box.
Parameters
The minimum width of the sub-box. Defaults to 0.0.
The maximum width of the sub-box. Defaults to 1.0.
The minimum height of the sub-box. Defaults to 0.0.
The maximum height of the sub-box. Defaults to 1.0.
The minimum depth of the sub-box. Defaults to 0.0.
The maximum depth of the sub-box. Defaults to 1.0.
The Random
instance used for generating random values. Defaults to Random.Default
.
Generates a uniformly distributed sub-rectangle based on random parameters within specified ranges.
Return
A new Rectangle
that represents the sub-rectangle.
Parameters
The minimum width of the sub-rectangle. Defaults to 0.0.
The maximum width of the sub-rectangle. Defaults to 1.0.
The minimum height of the sub-rectangle. Defaults to 0.0.
The maximum height of the sub-rectangle. Defaults to 1.0.
The Random
instance used for generating random values.