Skip to content

RasterEdgeClip

Overview

Represents the clipped state of a RasterEdge. For the binary version, there will be two of these edge clips per input edge.

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

Class RasterEdgeClip

import { RasterEdgeClip } from 'scenerystack/alpenglow';

Constructor

new RasterEdgeClip( clippedChunkIndex : number, point0 : Vector2, point1 : Vector2, point2 : Vector2, point3 : Vector2, isFirstEdge : boolean, isLastEdge : boolean )

Instance Methods

getCount() : number

getArea() : number

toString() : string

writeEncoding( encoder : ByteEncoder )

Static Methods

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

fromArrayBuffer( arrayBuffer : ArrayBuffer ) : RasterEdgeClip[]

Static Properties

ENCODING_BYTE_LENGTH

(readonly)

INDETERMINATE : RasterEdgeClip

(readonly)

Source Code

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