Main MRPT website > C++ reference for MRPT 1.5.6
Functions
geometry_unittest.cpp File Reference
#include <mrpt/math/geometry.h>
#include <mrpt/math/CPolygon.h>
#include <gtest/gtest.h>
#include <algorithm>
Include dependency graph for geometry_unittest.cpp:

Go to the source code of this file.

Functions

 TEST (Geometry, Line2DIntersect)
 
 TEST (Geometry, Segment2DIntersect)
 
void myTestPolygonContainsPoint (std::vector< TPoint2D > &vs, bool convex)
 
 TEST (Geometry, PolygonConvexContainsPoint)
 
 TEST (Geometry, PolygonConcaveContainsPoint)
 

Function Documentation

void myTestPolygonContainsPoint ( std::vector< TPoint2D > &  vs,
bool  convex 
)

Definition at line 84 of file geometry_unittest.cpp.

References mrpt::math::TPolygon2D::contains(), and mrpt::math::TPolygon2D::isConvex().

Referenced by TEST().

TEST ( Geometry  ,
Line2DIntersect   
)
TEST ( Geometry  ,
Segment2DIntersect   
)
TEST ( Geometry  ,
PolygonConvexContainsPoint   
)
TEST ( Geometry  ,
PolygonConcaveContainsPoint   
)

Definition at line 126 of file geometry_unittest.cpp.

References myTestPolygonContainsPoint().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018