HE_Mesh2014  2.0.11
Public Member Functions | Private Attributes | List of all members
wblut.geom.WB_RandomBox Class Reference
+ Inheritance diagram for wblut.geom.WB_RandomBox:

Public Member Functions

 WB_RandomBox ()
 
 WB_RandomBox (final long seed)
 
WB_RandomBox setSeed (final long seed)
 
WB_RandomBox setSize (double X, double Y, double Z)
 
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 X
 
WB_Vector offset
 

Detailed Description

Random generator for vectors uniformly distributed in the halfopen box [-X/2,-Y/2,-Z/2]-(X/2,Y/2,Z/2).

Author
Frederik Vanhoutte, W:Blut

Constructor & Destructor Documentation

wblut.geom.WB_RandomBox.WB_RandomBox ( )
wblut.geom.WB_RandomBox.WB_RandomBox ( final long  seed)
Parameters
seed

Member Function Documentation

WB_Point wblut.geom.WB_RandomBox.nextPoint ( )

Get the next random point.

Returns

Implements wblut.geom.WB_RandomPoint.

WB_Vector wblut.geom.WB_RandomBox.nextVector ( )

Get the next random vector.

Returns

Implements wblut.geom.WB_RandomPoint.

void wblut.geom.WB_RandomBox.reset ( )

Reset the RNG.

Implements wblut.geom.WB_RandomPoint.

WB_RandomPoint wblut.geom.WB_RandomBox.setOffset ( WB_Coord  offset)

Set point offset.

Parameters
offset
Returns

Implements wblut.geom.WB_RandomPoint.

WB_RandomPoint wblut.geom.WB_RandomBox.setOffset ( double  x,
double  y 
)

Set point offset.

Parameters
x
y
Returns

Implements wblut.geom.WB_RandomPoint.

WB_RandomPoint wblut.geom.WB_RandomBox.setOffset ( double  x,
double  y,
double  z 
)

Set point offset.

Parameters
x
y
z
Returns

Implements wblut.geom.WB_RandomPoint.

WB_RandomBox wblut.geom.WB_RandomBox.setSeed ( final long  seed)

Set the seed for the RNG.

Parameters
seed
Returns
this

Implements wblut.geom.WB_RandomPoint.

WB_RandomBox wblut.geom.WB_RandomBox.setSize ( double  X,
double  Y,
double  Z 
)
Parameters
X
Y
Z
Returns

Member Data Documentation

WB_Vector wblut.geom.WB_RandomBox.offset
private
final WB_MTRandom wblut.geom.WB_RandomBox.randomGen
private
double wblut.geom.WB_RandomBox.X
private

The documentation for this class was generated from the following file: