Class: UnstructuredGrid
Defined in: Grid.ts:667
An unstructured grid defined by a list of latitudes and longitudes
Extends
Constructors
Constructor
new UnstructuredGrid(
coords
,zoom?
):UnstructuredGrid
Defined in: Grid.ts:676
Create an unstructured grid
Parameters
Parameter | Type | Description |
---|---|---|
coords | object [] | The lat/lon coordinates of the grid points |
zoom? | Uint8Array | - |
Returns
UnstructuredGrid
Overrides
Properties
Property | Modifier | Type | Inherited from | Defined in |
---|---|---|---|---|
coords | readonly | object [] | - | Grid.ts:668 |
is_conformal | readonly | boolean | Grid .is_conformal | Grid.ts:104 |
ni | readonly | number | Grid .ni | Grid.ts:102 |
nj | readonly | number | Grid .nj | Grid.ts:103 |
type | readonly | GridType | Grid .type | Grid.ts:101 |
Methods
getVectorRotationAtPoint()
getVectorRotationAtPoint(
lon
,lat
):number
Defined in: Grid.ts:138
Parameters
Parameter | Type |
---|---|
lon | number |
lat | number |
Returns
number
Inherited from
getVectorRotationTexture()
getVectorRotationTexture(
gl
,data_are_earth_relative
):object
Defined in: Grid.ts:144
Parameters
Parameter | Type |
---|---|
gl | WebGLAnyRenderingContext |
data_are_earth_relative | boolean |
Returns
object
rotation
rotation:
WGLTexture
Inherited from
getWGLBillboardBuffers()
getWGLBillboardBuffers(
gl
,thin_fac
,max_zoom
):Promise
<{texcoords
:WGLBuffer
;vertices
:WGLBuffer
; }>
Defined in: Grid.ts:132
Parameters
Parameter | Type |
---|---|
gl | WebGLAnyRenderingContext |
thin_fac | number |
max_zoom | number |
Returns
Promise
<{ texcoords
: WGLBuffer
; vertices
: WGLBuffer
; }>
Inherited from
sampleNearestGridPoint()
sampleNearestGridPoint(
lon
,lat
,ary
):object
Defined in: Grid.ts:772
Parameters
Parameter | Type |
---|---|
lon | number |
lat | number |
ary | TypedArray |
Returns
object
sample
sample:
number
sample_lat
sample_lat:
number
sample_lon
sample_lon:
number