#ifndef __contoursIntersection_h_INCLUDED__ #define __contoursIntersection_h_INCLUDED__ #include "vectorFunctions.h" class contoursIntersection { public: contoursIntersection ( ); ~contoursIntersection ( ); double Slope ( double x0, double y0, double x1, double y1 ); double Normal ( double x0, double y0, double *m, double xi ); void Intersection ( double x01, double y01, double x02, double y02, double mn, double m2, double *x, double *y ); void SetContour1 ( std::vector*InX1, std::vector*InY1, std::vector*InZ1 ); void SetContour2 ( std::vector*InX2, std::vector*InY2, std::vector*InZ2 ); //All the intersections between the two set contour void InterBetweenContours ( std::vector*OutX, std::vector*OutY, std::vector*OutZ ); //All the possible intersections between the contours void PossibleIntersections ( std::vector*OutX, std::vector*OutY, std::vector*OutZ ); //Logical intersections between the two set contours void IntersectionPoints ( std::vector*OutX, std::vector*OutY, std::vector*OutZ ); //Set the parameter data for stimate the error between the contours void SetErrorParameter ( double val ); //The error between the contours int GetErrorBetweenContours ( double error ); private: std::vector _InX1; std::vector _InY1; std::vector _InZ1; std::vector _InX2; std::vector _InY2; std::vector _InZ2; }; #endif