MRPT  2.0.4
Functions
geometry_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/math/CPolygon.h>
#include <mrpt/math/TLine3D.h>
#include <mrpt/math/TObject2D.h>
#include <mrpt/math/TObject3D.h>
#include <mrpt/math/TPose2D.h>
#include <mrpt/math/geometry.h>
#include <algorithm>

Go to the source code of this file.

Functions

 TEST (Geometry, Line2DIntersect)
 
 TEST (Geometry, Line2DAngle)
 
 TEST (Geometry, Line3DAngle)
 
 TEST (Geometry, Segment2DIntersect)
 
 TEST (Geometry, Intersection3D)
 
 TEST (Geometry, IntersectionPlanePlane)
 
void myTestPolygonContainsPoint (std::vector< TPoint2D > &vs, bool convex)
 
 TEST (Geometry, PolygonConvexContainsPoint)
 
 TEST (Geometry, PolygonConcaveContainsPoint)
 
 TEST (Geometry, changeEpsilon)
 
 TEST (Geometry, conformAPlane)
 
 TEST (Geometry, RectanglesIntersection)
 

Function Documentation

◆ myTestPolygonContainsPoint()

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

◆ TEST() [1/11]

TEST ( Geometry  ,
changeEpsilon   
)

◆ TEST() [2/11]

TEST ( Geometry  ,
conformAPlane   
)

Definition at line 327 of file geometry_unittest.cpp.

References mrpt::math::conformAPlane(), and EXPECT_TRUE().

◆ TEST() [3/11]

TEST ( Geometry  ,
Intersection3D   
)

◆ TEST() [4/11]

TEST ( Geometry  ,
IntersectionPlanePlane   
)

◆ TEST() [5/11]

TEST ( Geometry  ,
Line2DAngle   
)

Definition at line 41 of file geometry_unittest.cpp.

References EXPECT_NEAR(), mrpt::math::getAngle(), and mrpt::RAD2DEG().

◆ TEST() [6/11]

TEST ( Geometry  ,
Line2DIntersect   
)

◆ TEST() [7/11]

TEST ( Geometry  ,
Line3DAngle   
)

Definition at line 58 of file geometry_unittest.cpp.

References EXPECT_NEAR(), mrpt::math::getAngle(), and mrpt::RAD2DEG().

◆ TEST() [8/11]

TEST ( Geometry  ,
PolygonConcaveContainsPoint   
)

Definition at line 281 of file geometry_unittest.cpp.

References myTestPolygonContainsPoint().

◆ TEST() [9/11]

TEST ( Geometry  ,
PolygonConvexContainsPoint   
)

◆ TEST() [10/11]

TEST ( Geometry  ,
RectanglesIntersection   
)

Definition at line 353 of file geometry_unittest.cpp.

References EXPECT_EQ(), and mrpt::math::RectanglesIntersection().

◆ TEST() [11/11]

TEST ( Geometry  ,
Segment2DIntersect   
)



Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 17:54:30 UTC 2020