class
FScanDetMath
Float math whose result is the same bit pattern on every machine the game ships to. The C runtime's sin/cos/pow are free to differ in the last ulp between MSVC, glibc and Apple's libm, and one ulp in a ray direction moves a far hit by a point's width — enough for two clients re-tracing the same replicated shot to draw different clouds. These use only +, -, *, / and sqrt, which IEEE 754 rounds exactly, in a translation unit compiled with FMA contraction off.
- Module
- Game
- Header
#include "PointCloud/ScanBvh.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
float | Sin | |
float | Cos | |
float | Pow01 | u^k for u in [0, 1] and k >= 1 (the shot's density falloff). |
Vec3 | Direction | FLidarPattern::Direction with every libm call replaced by the functions above: same hash, same distribution, a bit-identical result everywhere. |
Function details
Sin
C++
static float Sin(float radians)Cos
C++
static float Cos(float radians)Pow01
C++
static float Pow01(float u, float k)u^k for u in [0, 1] and k >= 1 (the shot's density falloff).
Direction
C++
static Vec3 Direction(const FLidarShot& shot, uint32_t rayIndex)FLidarPattern::Direction with every libm call replaced by the functions above: same hash, same distribution, a bit-identical result everywhere.
Generated from PointCloud/ScanBvh.h via game.json · Nov 5, 2026Version 1.0.0