Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
RandomTable Class Reference

Description

Definition at line 24 of file RandomTable.h.

Public Member Functions

 RandomTable (unsigned long size=0x8000)
 
 ~RandomTable ()
 
void resetRandomIndex ()
 
float getUnitRandom ()
 
float getRangeRandom (float start, float end)
 

Protected Member Functions

void generateRandomNumbers ()
 

Protected Attributes

unsigned long tableSize
 
float * table
 
unsigned long customRandomIndex
 

Constructor & Destructor Documentation

◆ RandomTable()

RandomTable::RandomTable ( unsigned long  size = 0x8000)
inline

Definition at line 44 of file RandomTable.h.

◆ ~RandomTable()

RandomTable::~RandomTable ( )
inline

Definition at line 50 of file RandomTable.h.

Member Function Documentation

◆ generateRandomNumbers()

void RandomTable::generateRandomNumbers ( )
inlineprotected

Definition at line 77 of file RandomTable.h.

◆ getRangeRandom()

float RandomTable::getRangeRandom ( float  start,
float  end 
)
inline

Definition at line 72 of file RandomTable.h.

◆ getUnitRandom()

float RandomTable::getUnitRandom ( )
inline

Definition at line 64 of file RandomTable.h.

◆ resetRandomIndex()

void RandomTable::resetRandomIndex ( )
inline

Definition at line 59 of file RandomTable.h.

Field Documentation

◆ customRandomIndex

unsigned long RandomTable::customRandomIndex
protected

Definition at line 37 of file RandomTable.h.

◆ table

float* RandomTable::table
protected

Definition at line 36 of file RandomTable.h.

◆ tableSize

unsigned long RandomTable::tableSize
protected

Definition at line 35 of file RandomTable.h.


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