Contents

SushiEngine

to_floating_origin

FloatingOriginVector3 to_floating_origin(const WorldVector3 &world, double sector_size) noexcept

Parameters

NameTypeDescription
worldconst WorldVector3 &

Absolute position in world (ECEF) space.

sector_sizedouble

Side length of one sector, in world units (> 0).

Returns

FloatingOriginVector3

The sector containing world and the local offset within it.

Description

Decomposes an absolute world position into sector + local offset.