|
static uint | CompactBitsBy2 (uint value) |
| Converts a value [*x*x*x*x] -> [****xxxx].
|
|
static uint | CompactBitsBy3 (uint value) |
| Converts a value [*x**x**x] -> [*****xxx].
|
|
static float | Mod (float k, float n) |
| Same as the %-operator, but handles negative numbers (on either side of the operation)
|
|
static int | Mod (int k, int n) |
| Same as the %-operator, but handles negative numbers (on either side of the operation)
|
|
static Vector3Int | OctreeCellToCoord (uint value) |
| Decodes a binary value of form [zyxzyxzyx] to [zzzyyyxxx] and stores the result into a vector.
|
|
static uint | PositionToMortonCode (Vector2Int value) |
| Combines, then transforms the x- and y-coordinates from [yyyyxxxx] to [yxyxyxyx] (for 32 bits) (conceptually)
|
|
static uint | PositionToMortonCode (Vector3Int value) |
| Combines, then transforms the x-, y- and z-coordinates from [zzzyyyxxx] to [zyxzyxzyx] (for 32 bits) (conceptually)
|
|
static Vector2Int | QuadtreeCellToCoord (uint value) |
| Decodes a binary value of form [yxyxyxyx] to [yyyyxxxx] and stores the result into a vector.
|
|
static uint | SplitBitsBy2 (uint value) |
| Converts a value [****xxxx] -> [*x*x*x*x].
|
|
static uint | SplitBitsBy3 (uint value) |
| Converts a value [*****xxx] -> [*x**x**x].
|
|