Skip to main content

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

ParameterTypeDescription
coordsobject[]The lat/lon coordinates of the grid points
zoom?Uint8Array-

Returns

UnstructuredGrid

Overrides

Grid.constructor

Properties

PropertyModifierTypeInherited fromDefined in
coordsreadonlyobject[]-Grid.ts:668
is_conformalreadonlybooleanGrid.is_conformalGrid.ts:104
nireadonlynumberGrid.niGrid.ts:102
njreadonlynumberGrid.njGrid.ts:103
typereadonlyGridTypeGrid.typeGrid.ts:101

Methods

getVectorRotationAtPoint()

getVectorRotationAtPoint(lon, lat): number

Defined in: Grid.ts:138

Parameters

ParameterType
lonnumber
latnumber

Returns

number

Inherited from

Grid.getVectorRotationAtPoint


getVectorRotationTexture()

getVectorRotationTexture(gl, data_are_earth_relative): object

Defined in: Grid.ts:144

Parameters

ParameterType
glWebGLAnyRenderingContext
data_are_earth_relativeboolean

Returns

object

rotation

rotation: WGLTexture

Inherited from

Grid.getVectorRotationTexture


getWGLBillboardBuffers()

getWGLBillboardBuffers(gl, thin_fac, max_zoom): Promise<{ texcoords: WGLBuffer; vertices: WGLBuffer; }>

Defined in: Grid.ts:132

Parameters

ParameterType
glWebGLAnyRenderingContext
thin_facnumber
max_zoomnumber

Returns

Promise<{ texcoords: WGLBuffer; vertices: WGLBuffer; }>

Inherited from

Grid.getWGLBillboardBuffers


sampleNearestGridPoint()

sampleNearestGridPoint(lon, lat, ary): object

Defined in: Grid.ts:772

Parameters

ParameterType
lonnumber
latnumber
aryTypedArray

Returns

object

sample

sample: number

sample_lat

sample_lat: number

sample_lon

sample_lon: number

Overrides

Grid.sampleNearestGridPoint