Skip to content

Overlap

Overview

Describes a section of continuous overlap (multiple overlapping points) between two segments.

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

Class Overlap

import { Overlap } from 'scenerystack/kite';

Constructor

new Overlap( a : number, b : number )

Instance Methods

apply( t : number ) : number

Maps a t value from the first curve to the second curve (assuming it is within the overlap range).

applyInverse( t : number ) : number

Maps a t value from the second curve to the first curve (assuming it is within the overlap range).

Instance Properties

a : number

b : number

t0 : number

Initial and ending t-values for the first curve (t0,t1) and second curve (qt0,qt1).

t1 : number

qt0 : number

qt1 : number

Static Methods

createLinear( a0 : number, b0 : number, a1 : number, b1 : number ) : Overlap

Returns a new overlap that should map t values of a0 => b0 and a1 => b1

Source Code

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