Skip to content

LineIntersector

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

Overview

Handles finding intersections between IntegerEdges (will push RationalIntersections into the edge's intersections arrays)

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

Class LineIntersector

import { LineIntersector } from 'scenerystack/alpenglow';

Static Methods

processIntegerEdgeIntersection( edgeA : IntegerEdge, edgeB : IntegerEdge, log : RasterTileLog | null )

edgeIntersectionBoundsTree( integerEdges : IntegerEdge[], log : RasterTileLog | null )

edgeIntersectionArrayBoundsTree( integerEdges : IntegerEdge[], log : RasterTileLog | null )

edgeIntersectionQuadratic( integerEdges : IntegerEdge[], log : RasterTileLog | null )

Source Code

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