Skip to content

RasterChunkReducePair

Overview

Like RasterChunkReduceQuad, but for the initial case where our left/right values are the same, and we can do a slightly different optimized reduce.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class RasterChunkReducePair

import { RasterChunkReducePair } from 'scenerystack/alpenglow';

Constructor

new RasterChunkReducePair( min : RasterChunkReduceData, max : RasterChunkReduceData )

Instance Methods

isFirstEdge() : boolean

isLastEdge() : boolean

toStrings() : string[]

writeEncoding( encoder : ByteEncoder )

Static Methods

combine( a : RasterChunkReducePair, b : RasterChunkReducePair ) : RasterChunkReducePair

readEncoding( arrayBuffer : ArrayBuffer, byteOffset : number ) : RasterChunkReducePair

fromArrayBuffer( arrayBuffer : ArrayBuffer ) : RasterChunkReducePair[]

Static Properties

ENCODING_BYTE_LENGTH

(readonly)

INDETERMINATE : RasterChunkReducePair

(readonly)

OUT_OF_RANGE : RasterChunkReducePair

(readonly)

Source Code

See the source for RasterChunkReducePair.ts in the alpenglow repository.