Skip to content

SegmentIntersection

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/kite/blob/main/js/util/SegmentIntersection.ts for the most up-to-date information.

Overview

An intersection between two different segments.

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

Class SegmentIntersection

import { SegmentIntersection } from 'scenerystack/kite';

Constructor

new SegmentIntersection( point : Vector2, aT : number, bT : number )

Instance Methods

getSwapped() : SegmentIntersection

Returns the intersection with a and b swapped.

Instance Properties

point : Vector2

aT : number

bT : number

Source Code

See the source for SegmentIntersection.ts in the kite repository.