Hardware-accelerated geospatial data plotting in the browser
autumnplot-gl • Docs
autumnplot-gl / RawVectorField
A class representing a 2D gridded field of vectors
• ArrayType extends TypedArray
new RawVectorField<
ArrayType
>(grid
,u
,v
,opts
?):RawVectorField
<ArrayType
>
Create a vector field.
• 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.
RawVectorField
<ArrayType
>
readonly
relative_to:VectorRelativeTo
readonly
u:RawScalarField
<ArrayType
>
readonly
v:RawScalarField
<ArrayType
>
get
grid():Grid
getTextureData():
object
object
u:
TextureDataType
<ArrayType
>
v:
TextureDataType
<ArrayType
>
getThinnedField(
thin_x
,thin_y
):RawVectorField
<ArrayType
>
• thin_x: number
• thin_y: number
RawVectorField
<ArrayType
>