Static
Readonly
BITSThe total amount of available bits for safe integers.
JavaScript uses IEEE 754 binary64 Doubles for all numbers and, as a result, only supports 53-bit Integers natively.
BigInt
is not an option due to the following reasons:
BigInt
are not constant time (unpredictable performance)>>>
operator)For more information see: http://2ality.com/2012/04/number-encoding.html
Static
Readonly
HI_The amount of available bits in the high DWord (21).
In JavaScript, bit operations can only be applied to DWords (32-bit). All 53-bit keys must be split into a high and a low part for processing.
Static
Readonly
LO_The amount of available bits in the low DWord (32).
In JavaScript, bit operations can only be applied to DWords (32-bit). All 53-bit keys must be split into a high and a low part for processing.
The amount of distinct integers that can be represented with X bits.
The amount of distinct integers that can be represented with X + Y bits.
The amount of distinct integers that can be represented with Y bits.
The amount of distinct integers that can be represented with Z bits.
The amount of bits reserved for the X-coordinate.
The amount of bits reserved for the Y-coordinate.
The amount of bits reserved for the Z-coordinate.
Checks if this key design equals another key design.
A key design.
Whether this key design equals the given one.
Returns a new key range iterator.
The iterator returns all keys in the specified coordinate range, including those at min and max.
An iterator.
Static
Readonly
EVENT_Triggers when a key design has changed.
A design for octant keys.
3D coordinates are packed into a single integer to obtain a unique key. This class describes the bit allotment for each coordinate and provides methods for key packing and unpacking.
See KeyDesign.BITS for the total amount of available bits.