Skip to content

RasterCompleteEdge

Overview

Represents an edge from a RasterCompleteEdgeChunk

Output edge for the raster-clip algorithm

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

Class RasterCompleteEdge

import { RasterCompleteEdge } from 'scenerystack/alpenglow';

Constructor

new RasterCompleteEdge( startPoint : Vector2, endPoint : Vector2 )

Instance Methods

toString() : string

writeEncoding( encoder : ByteEncoder )

Static Methods

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

fromArrayBuffer( arrayBuffer : ArrayBuffer ) : RasterCompleteEdge[]

Static Properties

ENCODING_BYTE_LENGTH

(readonly)

INDETERMINATE : RasterCompleteEdge

(readonly)

Source Code

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