src/partition.js
function convertPolyToP2TPoly(poly) {
  return poly.points.map(function(p) {
    return new poly2tri.Point(p.x, p.y);
  });
}
function convertPolyToP2TPoly(poly) {
  return poly.points.map(function(p) {
    return new poly2tri.Point(p.x, p.y);
  });
}
function convertPolyToP2TPoly ( poly ) { return poly . points . map ( function ( p ) { return new poly2tri . Point ( p . x , p . y ) ; } ) ; }
A polygon for use with poly2tri.
@private
@typedef P2TPoly
@type {Array.<P2TPoint>}
 
Convert a polygon into format required by poly2tri.
@private
@param {Poly} poly - The polygon to convert.
@return {P2TPoly} - The converted polygon.
A polygon for use with poly2tri .