to_floating_origin
FloatingOriginVector3 to_floating_origin(const WorldVector3 &world, double sector_size) noexceptParameters
| Name | Type | Description |
|---|---|---|
world | const WorldVector3 & | Absolute position in world (ECEF) space. |
sector_size | double | 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.

