MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / Halton

Function Halton

Source/URLab/Private/MuJoCo/Utils/MjColor.cpp:13–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace MjColor
12{
13float Halton(int32 Seed, int32 Base)
14{
15 float F = 1.0f;
16 float R = 0.0f;
17 int32 I = Seed;
18 while (I > 0)
19 {
20 F /= (float)Base;
21 R += F * (float)(I % Base);
22 I /= Base;
23 }
24 return R;
25}
26
27FLinearColor HSVToRGB(float H, float S, float V)
28{

Callers 4

RunTestMethod · 0.85
IslandColorFunction · 0.85

Calls

no outgoing calls

Tested by 1

RunTestMethod · 0.68