Skip to content

IntersectionPoint

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

Overview

Intersection of two line segments, with t0 and t1 representing the interpolation values for the two segments.

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

Class IntersectionPoint

import { IntersectionPoint } from 'scenerystack/alpenglow';

Constructor

new IntersectionPoint( t0 : BigRational, t1 : BigRational, point : BigRationalVector2 )

Instance Methods

toString() : string

verify( p0 : BigIntVector2, p1 : BigIntVector2, p2 : BigIntVector2, p3 : BigIntVector2 )

Static Methods

intersectLineSegments( p0 : BigIntVector2, p1 : BigIntVector2, p2 : BigIntVector2, p3 : BigIntVector2 ) : IntersectionPoint[]

Source Code

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