Skip to content

CohenSutherlandClipping

Overview

Cohen-Sutherland line clipping, with the Maillot coding extension

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

Class CohenSutherlandClipping

import { CohenSutherlandClipping } from 'scenerystack/alpenglow';

Static Methods

getCode( x : number, y : number, bounds : Bounds2 ) : Code

The Maillot extension of the Cohen-Sutherland encoding of points

Source Code

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