HE_Mesh2014  2.0.11
Public Member Functions | Private Attributes | List of all members
wblut.math.WB_RandomInSphere Class Reference

Public Member Functions

 WB_RandomInSphere ()
 
WB_RandomInSphere setSeed (final long seed)
 
WB_Point nextPoint ()
 
WB_Vector nextVector ()
 

Private Attributes

final WB_MTRandom randomGen
 

Detailed Description

Random generator for vectors uniformly distributed inside the unit sphere.

Author
Frederik Vanhoutte, W:Blut

Constructor & Destructor Documentation

wblut.math.WB_RandomInSphere.WB_RandomInSphere ( )

Instantiates a new w b_ random sphere.

Member Function Documentation

WB_Point wblut.math.WB_RandomInSphere.nextPoint ( )

Next point.

Returns
next random WB_Normal on unit sphere
WB_Vector wblut.math.WB_RandomInSphere.nextVector ( )

Next vector.

Returns
next random WB_Normal on unit sphere
WB_RandomInSphere wblut.math.WB_RandomInSphere.setSeed ( final long  seed)

Set random seed.

Parameters
seedseed
Returns
self

Member Data Documentation

final WB_MTRandom wblut.math.WB_RandomInSphere.randomGen
private

The random gen.


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