/******************************************************************************
 *
 * geomhelp.h
 *
 * (c) Leonid (Lodrion) Taycher 2000
 *
 ******************************************************************************/

#ifndef __GEOMHELP_H__
#define __GEOMHELP_H__

#include <vector>
#include <aigeom.h>

struct ais2TriagData
{
	ais2TriagData(const aic2Vect& pp, double d) : p(pp), dist(d) {};
	
	aic2Vect p;
	double dist;
};

aic2Vect aifTriangulate2D(const ais2TriagData& p1, 
								const ais2TriagData& p2, const ais2TriagData& p3);
aic2Vect aifTriangulate2D(const vector<ais2TriagData>& pnts);
// Effect 		Compute the location of the point which has supplied distances
//						from the points
// Throws 		if the problem is ill defined, or if there are less than 3 points


#endif
