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

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

◆ myTestPolygonContainsPoint()

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

Definition at line 82 of file geometry_unittest.cpp.

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

Referenced by TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TEST() [1/4]

TEST ( Geometry  ,
Line2DIntersect   
)

◆ TEST() [2/4]

TEST ( Geometry  ,
PolygonConcaveContainsPoint   
)

Definition at line 124 of file geometry_unittest.cpp.

References myTestPolygonContainsPoint().

Here is the call graph for this function:

◆ TEST() [3/4]

TEST ( Geometry  ,
PolygonConvexContainsPoint   
)

Definition at line 100 of file geometry_unittest.cpp.

References myTestPolygonContainsPoint().

Here is the call graph for this function:

◆ TEST() [4/4]

TEST ( Geometry  ,
Segment2DIntersect   
)



Page generated by Doxygen 1.9.1 for MRPT 1.9.9 Git: 63ea9d1f1 Thu Nov 23 00:06:53 2017 +0100 at mar 26 may 2026 12:19:29 CEST