MRPT  1.9.9
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)
 
 TEST (Geometry, Intersection3D)
 
 TEST (Geometry, IntersectionPlanePlane)
 
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 204 of file geometry_unittest.cpp.

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

Referenced by TEST().

◆ TEST() [1/6]

TEST ( Geometry  ,
Line2DIntersect   
)

◆ TEST() [2/6]

TEST ( Geometry  ,
Segment2DIntersect   
)

◆ TEST() [3/6]

TEST ( Geometry  ,
Intersection3D   
)

◆ TEST() [4/6]

TEST ( Geometry  ,
IntersectionPlanePlane   
)

◆ TEST() [5/6]

TEST ( Geometry  ,
PolygonConvexContainsPoint   
)

Definition at line 222 of file geometry_unittest.cpp.

References myTestPolygonContainsPoint().

◆ TEST() [6/6]

TEST ( Geometry  ,
PolygonConcaveContainsPoint   
)

Definition at line 246 of file geometry_unittest.cpp.

References myTestPolygonContainsPoint().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020