Main Page | Class Hierarchy | Class List | File List | Class Members

Random Class Reference

#include <random.h>

List of all members.

Public Member Functions

 Random (long s=0)
void seed (long s)
DBL getDouble ()
DBL jitterFactor (DBL amouth)
Vector3 pointInBox ()
Vector3 pointInSphere ()
Vector3 direction ()

Static Public Attributes

Random global = Random(234234324)


Detailed Description

Random number stream.
Author:
Micha Riser


Member Function Documentation

Vector3 Random::direction  )  [inline]
 

Returns random unit vector. (uniform distributed)

DBL Random::getDouble  )  [inline]
 

Get next random double value in interval [0,1[

DBL Random::jitterFactor DBL  amouth  )  [inline]
 

Get factor in the range [1-amouth,1+amouth]

Vector3 Random::pointInBox  )  [inline]
 

Returns random point in box from <-1,-1,-1> to <1,1,1>.

Vector3 Random::pointInSphere  )  [inline]
 

Returns random point in a unit sphere. (uniform distributed)


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 12:16:07 2005 for raytracer.kdevelop by doxygen 1.3.8