Constructor
new GSfc4q(level)
Parameters:
| Name | Type | Description |
|---|---|---|
level |
float | hierarchical level of aperture-4 hierarchical grid. Valid integer and "half levels". |
Methods
bkey_decode(bkey) → {array}
Concrete method. Same as key_decode() method, but for integer levels only.
Parameters:
| Name | Type | Description |
|---|---|---|
bkey |
integer | distance from origin in the curve. |
Returns:
- the IJ coordinates of the key.
- Type
- array
bkey_encode(i, j)
Concrete method. Translates to bkey the (i,j) coordinates. Use blevel as reference.
Parameters:
| Name | Type | Description |
|---|---|---|
i |
integer | the rounded X coordinate, left to right. |
j |
integer | the rounded Y coordinate, top to bottom. |
Returns:
integer. and mutate bkeys
key_decode(key) → {array}
Translates key to (i,j) coordinates.
Parameters:
| Name | Type | Description |
|---|---|---|
key |
integer | distance from origin in the curve at level. |
Returns:
- the coordinates IJ in [IJ0,IJ1] with IJ1=null when not isHalf.
- Type
- array
key_encode(i, j) → {array}
Translates to key the (i,j) coordinates of "blind grid", Use level as reference, and supposing union of cells when isHalf, returning 2 cells instead one.
Parameters:
| Name | Type | Description |
|---|---|---|
i |
integer | the rounded X coordinate, left to right. |
j |
integer | the rounded Y coordinate, top to bottom. |
Returns:
- of BigInts, bkey1 and null or, when isHalf, bkey1 and bkey2.
- Type
- array
refresh(level)
Refresh inicializations, mutating all propertis if necessary. Used by constructor.
Parameters:
| Name | Type | Description |
|---|---|---|
level |
float | null (no mutation) or hierarchical level of aperture-4 hierarchical grid. Valid integer and "half levels". |