SpatialOctree_Bounds

Description

struct Tinman.Terrain.Util.SpatialOctree_Bounds

Default implementation of the ISpatialBoundsTrait trait for coordinates and bounds in 3D.

Public / Methods

Space​Filling​Curve


[Pure]
public static method SpaceFillingCurve → (2)

state in : int32

[0..11]
The traversal state.

ordinal in : int32

[0..7]
The traversal ordinal.

returns → Vec2I

The index (see Vec2I.X) and state (see Vec2I.Y) of the child to visit next.

Computes the index of the child to visit next, in order to traverse the octree along a 3D space-filling curve.