autumnplot-gl

Hardware-accelerated geospatial data plotting in the browser


Project maintained by tsupinie Hosted on GitHub Pages — Theme by mattgraham

autumnplot-glDocs


autumnplot-gl / RawVectorField

Class: RawVectorField<ArrayType>

A class representing a 2D gridded field of vectors

Type parameters

ArrayType extends TypedArray

Constructors

new RawVectorField()

new RawVectorField<ArrayType>(grid, u, v, opts?): RawVectorField<ArrayType>

Create a vector field.

Parameters

grid: Grid

The grid on which the vector components are defined

u: ArrayType

The u (east/west) component of the vectors, which should be given as a 1D array in row-major order, with the first element being at the lower-left corner of the grid

v: ArrayType

The v (north/south) component of the vectors, which should be given as a 1D array in row-major order, with the first element being at the lower-left corner of the grid

opts?: RawVectorFieldOptions

Options for creating the vector field.

Returns

RawVectorField<ArrayType>

Source

RawField.ts:105

Properties

relative_to

readonly relative_to: VectorRelativeTo

Source

RawField.ts:96


u

readonly u: RawScalarField<ArrayType>

Source

RawField.ts:94


v

readonly v: RawScalarField<ArrayType>

Source

RawField.ts:95

Accessors

grid

get grid(): Grid

Returns

Grid

Source

RawField.ts:149

Methods

getTextureData()

getTextureData(): object

Returns

object

u

u: TextureDataType<ArrayType>

v

v: TextureDataType<ArrayType>

Source

RawField.ts:113


getThinnedField()

getThinnedField(thin_x, thin_y): RawVectorField<ArrayType>

Parameters

thin_x: number

thin_y: number

Returns

RawVectorField<ArrayType>

Source

RawField.ts:124