Skip to content

distToSegment

Under Construction

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

Overview

Distance from a point to a line segment squared.

@param point - The point @param a - Starting point of the line segment @param b - Ending point of the line segment

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

Source Code

See the source for distToSegment.ts in the dot repository.