Skip to content

PolygonBilinear

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/raster/PolygonBilinear.ts for the most up-to-date information.

Overview

Utilities for the bilinear/tent filter for polygons

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

Class PolygonBilinear

import { PolygonBilinear } from 'scenerystack/alpenglow';

Static Methods

evaluate( p0x : number, p0y : number, p1x : number, p1y : number ) : number

evaluatePolygons( polygons : Vector2[][], pointX : number, pointY : number, minX : number, minY : number ) : number

evaluateLinearEdges( edges : LinearEdge[], pointX : number, pointY : number, minX : number, minY : number ) : number

Source Code

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