HE_Mesh  5.1.2
wblut.geom.WB_RandomInCylinder Class Reference
+ Inheritance diagram for wblut.geom.WB_RandomInCylinder:

Public Member Functions

 WB_RandomInCylinder ()
 
 WB_RandomInCylinder (final long seed)
 
WB_RandomInCylinder setSeed (final long seed)
 
WB_RandomInCylinder setRadius (final double r)
 
WB_RandomInCylinder setHeight (final double h)
 
WB_Point nextPoint ()
 
WB_Vector nextVector ()
 
void reset ()
 
WB_RandomInCylinder setOffset (final WB_Coord offset)
 
WB_RandomInCylinder setOffset (final double x, final double y)
 
WB_RandomInCylinder setOffset (final double x, final double y, final double z)
 
- Public Member Functions inherited from wblut.geom.WB_RandomPoint
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
 

Detailed Description

Random generator for vectors uniformly distributed inside a cylinder with radius r and height h.

Author
Frederik Vanhoutte, W:Blut

Constructor & Destructor Documentation

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

Member Function Documentation

WB_Point wblut.geom.WB_RandomInCylinder.nextPoint ( )

Get the next random point.

Returns

Implements wblut.geom.WB_RandomPoint.

WB_Vector wblut.geom.WB_RandomInCylinder.nextVector ( )

Get the next random vector.

Returns

Implements wblut.geom.WB_RandomPoint.

void wblut.geom.WB_RandomInCylinder.reset ( )

Reset the RNG.

Implements wblut.geom.WB_RandomPoint.

WB_RandomInCylinder wblut.geom.WB_RandomInCylinder.setHeight ( final double  h)
Parameters
h
Returns
WB_RandomInCylinder wblut.geom.WB_RandomInCylinder.setOffset ( final WB_Coord  offset)
WB_RandomInCylinder wblut.geom.WB_RandomInCylinder.setOffset ( final double  x,
final double  y 
)
WB_RandomInCylinder wblut.geom.WB_RandomInCylinder.setOffset ( final double  x,
final double  y,
final double  z 
)
WB_RandomInCylinder wblut.geom.WB_RandomInCylinder.setRadius ( final double  r)
Parameters
r
Returns
WB_RandomInCylinder wblut.geom.WB_RandomInCylinder.setSeed ( final long  seed)

Set the seed for the RNG.

Parameters
seed
Returns
this

Implements wblut.geom.WB_RandomPoint.

Member Data Documentation

WB_Vector wblut.geom.WB_RandomInCylinder.offset
private
double wblut.geom.WB_RandomInCylinder.radius
private
final WB_MTRandom wblut.geom.WB_RandomInCylinder.randomGen
private

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