#include <c4d_tools.h>
A class to generate stratified 2D random numbers.
公共成员函数 |
|
Bool | Init ( Int32 initial_value, Bool reset) |
void | GetNext ( Float *xx, Float *yy) |
静态公共成员函数 |
|
static Stratified2DRandom * | Alloc (void) |
static void | Free ( Stratified2DRandom *&rnd) |
私有成员函数 |
|
Stratified2DRandom () | |
~Stratified2DRandom () |
|
|
|
static |
Allocates a generator. Destroy the allocated generator with Free() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
|
static |
Destructs generators allocated with Alloc() 。使用 AutoAlloc to automate the allocation and destruction based on scope.
[in,out] | rnd | The generator to destruct. If the pointer is nullptr nothing happens. The pointer is assigned nullptr afterwards. |
Bool Init | ( | Int32 | initial_value , |
Bool | reset | ||
) |
Initializes the generator.
[in] | initial_value | Initial value. |
[in] | reset | true if the generator should be reset, otherwise false . |
void GetNext | ( | Float * | xx , |
Float * | yy | ||
) |
Gets the next random value pair.
[in] | xx | Assigned the first random value. |
[in] | yy | Assigned the second random value. |