Overloaded the minEnclosingTriangle function such that there is an alternative function with the same name which does not require the output parameter ``area''.

Changed the sample source file minarea.cpp to use the overloaded version of the function.
Updated some comments in the min_enclosing_triangle.cpp source file.
This commit is contained in:
Ovidiu Parvu
2013-09-12 23:47:48 +01:00
parent 0ed2f6201d
commit 8bada4c751
3 changed files with 44 additions and 10 deletions

View File

@@ -44,9 +44,8 @@ int main( int /*argc*/, char** /*argv*/ )
// Find the minimum area enclosing triangle
vector<Point2f> triangle;
double area;
minEnclosingTriangle(points, triangle, area);
minEnclosingTriangle(points, triangle);
// Find the minimum area enclosing circle
Point2f center, vtx[4];