NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Random Class Reference

#include <Random.hpp>

Inherits FW::InputStream.

Public Member Functions

 Random (void)
 
 Random (U32 seed)
 
 Random (const Random &other)
 
 ~Random (void)
 
void reset (void)
 
void reset (U32 seed)
 
void reset (const Random &other)
 
virtual int read (void *ptr, int size)
 
Randomoperator= (const Random &other)
 
U32 getU32 (void)
 
U32 getU32 (U32 hi)
 
U32 getU32 (U32 lo, U32 hi)
 
S32 getS32 (void)
 
S32 getS32 (S32 hi)
 
S32 getS32 (S32 lo, S32 hi)
 
F32 getF32 (void)
 
F32 getF32 (F32 lo, F32 hi)
 
U64 getU64 (void)
 
U64 getU64 (U64 hi)
 
U64 getU64 (U64 lo, U64 hi)
 
S64 getS64 (S64 hi)
 
S64 getS64 (S64 lo, S64 hi)
 
F64 getF64 (void)
 
F64 getF64 (F64 lo, F64 hi)
 
F32 getF32Exp (void)
 
F32 getF32Exp (F32 deviation)
 
F32 getF32Exp (F32 mean, F32 deviation)
 
F64 getF64Exp (void)
 
F64 getF64Exp (F64 deviation)
 
F64 getF64Exp (F64 mean, F64 deviation)
 
F32 getF32Normal (void)
 
F32 getF32Normal (F32 deviation)
 
F32 getF32Normal (F32 mean, F32 deviation)
 
F64 getF64Normal (void)
 
F64 getF64Normal (F64 deviation)
 
F64 getF64Normal (F64 mean, F64 deviation)
 
Vec2f getVec2f (void)
 
Vec2f getVec2f (F32 lo, F32 hi)
 
Vec3f getVec3f (void)
 
Vec3f getVec3f (F32 lo, F32 hi)
 
Vec4f getVec4f (void)
 
Vec4f getVec4f (F32 lo, F32 hi)
 
Vec2d getVec2d (void)
 
Vec2d getVec2d (F64 lo, F64 hi)
 
Vec3d getVec3d (void)
 
Vec3d getVec3d (F64 lo, F64 hi)
 
Vec4d getVec4d (void)
 
Vec4d getVec4d (F64 lo, F64 hi)
 
- Public Member Functions inherited from FW::InputStream
 InputStream (void)
 
virtual ~InputStream (void)
 
void readFully (void *ptr, int size)
 
U8 readU8 (void)
 
U16 readU16BE (void)
 
U16 readU16LE (void)
 
U32 readU32BE (void)
 
U32 readU32LE (void)
 
U64 readU64BE (void)
 
U64 readU64LE (void)
 

Detailed Description

Definition at line 36 of file Random.hpp.

Constructor & Destructor Documentation

FW::Random::Random ( void  )
inline

Definition at line 39 of file Random.hpp.

FW::Random::Random ( U32  seed)
inlineexplicit

Definition at line 40 of file Random.hpp.

FW::Random::Random ( const Random other)
inline

Definition at line 41 of file Random.hpp.

FW::Random::~Random ( void  )
inline

Definition at line 42 of file Random.hpp.

Member Function Documentation

F32 FW::Random::getF32 ( void  )
inline

Definition at line 57 of file Random.hpp.

F32 FW::Random::getF32 ( F32  lo,
F32  hi 
)
inline

Definition at line 58 of file Random.hpp.

F32 FW::Random::getF32Exp ( void  )
inline

Definition at line 67 of file Random.hpp.

F32 FW::Random::getF32Exp ( F32  deviation)
inline

Definition at line 68 of file Random.hpp.

F32 FW::Random::getF32Exp ( F32  mean,
F32  deviation 
)
inline

Definition at line 69 of file Random.hpp.

F32 Random::getF32Normal ( void  )

Definition at line 141 of file Random.cpp.

F32 FW::Random::getF32Normal ( F32  deviation)
inline

Definition at line 75 of file Random.hpp.

F32 FW::Random::getF32Normal ( F32  mean,
F32  deviation 
)
inline

Definition at line 76 of file Random.hpp.

F64 FW::Random::getF64 ( void  )
inline

Definition at line 64 of file Random.hpp.

F64 FW::Random::getF64 ( F64  lo,
F64  hi 
)
inline

Definition at line 65 of file Random.hpp.

F64 FW::Random::getF64Exp ( void  )
inline

Definition at line 70 of file Random.hpp.

F64 FW::Random::getF64Exp ( F64  deviation)
inline

Definition at line 71 of file Random.hpp.

F64 FW::Random::getF64Exp ( F64  mean,
F64  deviation 
)
inline

Definition at line 72 of file Random.hpp.

F64 Random::getF64Normal ( void  )

Definition at line 163 of file Random.cpp.

F64 FW::Random::getF64Normal ( F64  deviation)
inline

Definition at line 78 of file Random.hpp.

F64 FW::Random::getF64Normal ( F64  mean,
F64  deviation 
)
inline

Definition at line 79 of file Random.hpp.

S32 FW::Random::getS32 ( void  )
inline

Definition at line 54 of file Random.hpp.

S32 FW::Random::getS32 ( S32  hi)
inline

Definition at line 55 of file Random.hpp.

S32 FW::Random::getS32 ( S32  lo,
S32  hi 
)
inline

Definition at line 56 of file Random.hpp.

S64 FW::Random::getS64 ( S64  hi)
inline

Definition at line 62 of file Random.hpp.

S64 FW::Random::getS64 ( S64  lo,
S64  hi 
)
inline

Definition at line 63 of file Random.hpp.

U32 FW::Random::getU32 ( void  )
inline

Definition at line 51 of file Random.hpp.

U32 FW::Random::getU32 ( U32  hi)
inline

Definition at line 52 of file Random.hpp.

U32 FW::Random::getU32 ( U32  lo,
U32  hi 
)
inline

Definition at line 53 of file Random.hpp.

U64 FW::Random::getU64 ( void  )
inline

Definition at line 59 of file Random.hpp.

U64 FW::Random::getU64 ( U64  hi)
inline

Definition at line 60 of file Random.hpp.

U64 FW::Random::getU64 ( U64  lo,
U64  hi 
)
inline

Definition at line 61 of file Random.hpp.

Vec2d FW::Random::getVec2d ( void  )
inline

Definition at line 88 of file Random.hpp.

Vec2d FW::Random::getVec2d ( F64  lo,
F64  hi 
)
inline

Definition at line 89 of file Random.hpp.

Vec2f FW::Random::getVec2f ( void  )
inline

Definition at line 81 of file Random.hpp.

Vec2f FW::Random::getVec2f ( F32  lo,
F32  hi 
)
inline

Definition at line 82 of file Random.hpp.

Vec3d FW::Random::getVec3d ( void  )
inline

Definition at line 90 of file Random.hpp.

Vec3d FW::Random::getVec3d ( F64  lo,
F64  hi 
)
inline

Definition at line 91 of file Random.hpp.

Vec3f FW::Random::getVec3f ( void  )
inline

Definition at line 83 of file Random.hpp.

Vec3f FW::Random::getVec3f ( F32  lo,
F32  hi 
)
inline

Definition at line 84 of file Random.hpp.

Vec4d FW::Random::getVec4d ( void  )
inline

Definition at line 92 of file Random.hpp.

Vec4d FW::Random::getVec4d ( F64  lo,
F64  hi 
)
inline

Definition at line 93 of file Random.hpp.

Vec4f FW::Random::getVec4f ( void  )
inline

Definition at line 85 of file Random.hpp.

Vec4f FW::Random::getVec4f ( F32  lo,
F32  hi 
)
inline

Definition at line 86 of file Random.hpp.

Random& FW::Random::operator= ( const Random other)
inline

Definition at line 49 of file Random.hpp.

int Random::read ( void ptr,
int  size 
)
virtual

Implements FW::InputStream.

Definition at line 132 of file Random.cpp.

void Random::reset ( void  )

Definition at line 98 of file Random.cpp.

void Random::reset ( U32  seed)

Definition at line 108 of file Random.cpp.

void Random::reset ( const Random other)

Definition at line 120 of file Random.cpp.


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