#include "createGeometry.h"
#include<iostream>
#include <vector>
#include<geos/geom/Geometry.h>

using namespace std;
using namespace geos::geom;

int main()
{
	createGeometry c1;

	Polygon* boundGeom;

	Geometry* Rect;
	Geometry* line;
	Geometry* point;

	boundGeom = c1.createPolygon(10.78, 10.34, 18.89, 16.64);
	Rect = boundGeom;

	line = c1.makeLine(10.78, 12.34, 18.89, 12.34);

	point = Rect->intersection(line);

	cout <<"Polygon coordinates : \n" << *Rect->getCoordinates() << endl;
	cout <<"Line Coordinates : " << *line->getCoordinates() << endl;
	cout <<"Intersection point : " << *point->getCoordinates() << endl;

	return 0;
}