Skip to content

IntersectionPoint

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.