UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Halton.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6
7
9[[nodiscard]] constexpr float Halton(int32 Index, int32 Base)
10{
11 float Result = 0.0f;
12 float InvBase = 1.0f / float(Base);
13 float Fraction = InvBase;
14 while (Index > 0)
15 {
16 Result += float(Index % Base) * Fraction;
17 Index /= Base;
18 Fraction *= InvBase;
19 }
20 return Result;
21}
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
constexpr float Halton(int32 Index, int32 Base)
Definition Halton.h:9
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
U16 Index
Definition radfft.cpp:71