Skip to content

triangleAreaSigned

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

Overview

The area inside the triangle defined by the three vertices, but with the sign determined by whether the vertices provided are clockwise or counter-clockwise.

If the vertices are counterclockwise (in a right-handed coordinate system), then the signed area will be positive.

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

Source Code

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