Skip to content

RasterEdge

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/parallel/raster-clip/RasterEdge.ts for the most up-to-date information.

Overview

Represents an edge from a RasterChunk

Used for the raster-clip input, and the output for reducible edges (that will be fed back in)

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

Class RasterEdge

import { RasterEdge } from 'scenerystack/alpenglow';

Constructor

new RasterEdge( chunkIndex : number, isFirstEdge : boolean, isLastEdge : boolean, startPoint : Vector2, endPoint : Vector2 )

Instance Methods

toString() : string

writeEncoding( encoder : ByteEncoder )

Static Methods

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

fromArrayBuffer( arrayBuffer : ArrayBuffer ) : RasterEdge[]

Static Properties

ENCODING_BYTE_LENGTH

(readonly)

INDETERMINATE : RasterEdge

(readonly)

Source Code

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