HE_Mesh
5.0.0
|
Public Member Functions | |
WB_RandomDisk () | |
WB_RandomDisk (final long seed) | |
WB_RandomDisk | setSeed (final long seed) |
WB_RandomDisk | setRadius (double r) |
WB_Point | nextPoint () |
WB_Vector | nextVector () |
void | reset () |
WB_RandomPoint | setOffset (WB_Coord offset) |
WB_RandomPoint | setOffset (double x, double y) |
WB_RandomPoint | setOffset (double x, double y, double z) |
Private Attributes | |
final WB_MTRandom | randomGen |
double | radius |
WB_Vector | offset |
Random generator for vectors uniformly distributed on a disk with radius r.
wblut.geom.WB_RandomDisk.WB_RandomDisk | ( | ) |
wblut.geom.WB_RandomDisk.WB_RandomDisk | ( | final long | seed | ) |
seed |
WB_Point wblut.geom.WB_RandomDisk.nextPoint | ( | ) |
WB_Vector wblut.geom.WB_RandomDisk.nextVector | ( | ) |
void wblut.geom.WB_RandomDisk.reset | ( | ) |
Reset the RNG.
Implements wblut.geom.WB_RandomPoint.
WB_RandomPoint wblut.geom.WB_RandomDisk.setOffset | ( | WB_Coord | offset | ) |
WB_RandomPoint wblut.geom.WB_RandomDisk.setOffset | ( | double | x, |
double | y | ||
) |
WB_RandomPoint wblut.geom.WB_RandomDisk.setOffset | ( | double | x, |
double | y, | ||
double | z | ||
) |
WB_RandomDisk wblut.geom.WB_RandomDisk.setRadius | ( | double | r | ) |
r |
WB_RandomDisk wblut.geom.WB_RandomDisk.setSeed | ( | final long | seed | ) |
|
private |
|
private |
|
private |