interface IDataGrid2d<T> {
    xSegmentCount: number;
    ySegmentCount: number;
    getDataFace4At(xIndex, yIndex, buffer): void;
    getDataValueAt(xIndex, yIndex): T;
    getMaxDataValue(): T;
    getMinDataValue(): T;
}

Type Parameters

  • T

Implemented by

Properties

xSegmentCount: number
ySegmentCount: number

Methods

  • Extract a 2x2 matrix (a "face4") from the underlyting data.

    Imagine a face4 element like this (x,y) (x+1,y) A-----B | | | | D-----C (x,y+1) (x+1,y+1)

    then result in the buffer will be [ [A,B], [D,C] ]

    If any index is invalid then the resulting buffer element will be null.

    Parameters

    • xIndex: number

      The x index in 0 <= xIndex < xSegmentCount.

    • yIndex: number

      The y index in 0 <= yIndex < ySegmentCount.

    • buffer: DataGridFace4<T>

      The result buffer for four elements.

    Returns void

Generated using TypeDoc