is-triangle
Return whether an array of 3 points describe a triangle.
example
var isTriangle = ;console; // falseconsole; // true
methods
var isTriangle = ;
isTriangle(pts, opts={})
Return whether the array of pts
is a triangle, in any dimension.
pts
is an array array coordinates.
Optionally you can control the tolerance for equality comparisons with
opts.tolerance
. The default tolerance is 1e-10
.
install
With npm do:
npm install is-triangle
license
MIT