Properties
Readonly
xSegmentCount
xSegmentCount: number
Readonly
ySegmentCount
ySegmentCount: number
Methods
getDataFace4At
- getDataFace4At(xIndex, yIndex, buffer): void
Returns void
getDataValueAt
- getDataValueAt(xIndex, yIndex): T
Parameters
- xIndex: number
- yIndex: number
Returns T
getMaxDataValue
- getMaxDataValue(): T
Returns T
getMinDataValue
- getMinDataValue(): T
Returns T
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.