MRPT  2.0.1
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>
Include dependency graph for geometry_unittest.cpp:

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 
)

Definition at line 239 of file geometry_unittest.cpp.

References mrpt::math::TPolygon2D::contains(), EXPECT_EQ(), EXPECT_TRUE(), 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/11]

TEST ( Geometry  ,
Line2DIntersect   
)

Definition at line 23 of file geometry_unittest.cpp.

References EXPECT_EQ(), EXPECT_NEAR(), EXPECT_TRUE(), mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::TObject2D::getPoint(), mrpt::math::TObject2D::getType(), and mrpt::math::intersect().

Here is the call graph for this function:

◆ TEST() [2/11]

TEST ( Geometry  ,
Line2DAngle   
)

Definition at line 41 of file geometry_unittest.cpp.

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

Here is the call graph for this function:

◆ TEST() [3/11]

TEST ( Geometry  ,
Line3DAngle   
)

Definition at line 58 of file geometry_unittest.cpp.

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

Here is the call graph for this function:

◆ TEST() [4/11]

TEST ( Geometry  ,
Segment2DIntersect   
)

Definition at line 80 of file geometry_unittest.cpp.

References EXPECT_EQ(), EXPECT_NEAR(), EXPECT_TRUE(), mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::TObject2D::getPoint(), mrpt::math::TObject2D::getType(), and mrpt::math::intersect().

Here is the call graph for this function:

◆ TEST() [5/11]

TEST ( Geometry  ,
Intersection3D   
)

Definition at line 123 of file geometry_unittest.cpp.

References EXPECT_EQ(), EXPECT_TRUE(), mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::GEOMETRIC_TYPE_SEGMENT, and mrpt::math::intersect().

Here is the call graph for this function:

◆ TEST() [6/11]

TEST ( Geometry  ,
IntersectionPlanePlane   
)

Definition at line 185 of file geometry_unittest.cpp.

References EXPECT_EQ(), EXPECT_TRUE(), mrpt::math::GEOMETRIC_TYPE_LINE, mrpt::math::GEOMETRIC_TYPE_PLANE, and mrpt::math::intersect().

Here is the call graph for this function:

◆ TEST() [7/11]

TEST ( Geometry  ,
PolygonConvexContainsPoint   
)

Definition at line 257 of file geometry_unittest.cpp.

References mrpt::math::CPolygon::AddVertex(), mrpt::math::TPolygon2D::contains(), and myTestPolygonContainsPoint().

Here is the call graph for this function:

◆ TEST() [8/11]

TEST ( Geometry  ,
PolygonConcaveContainsPoint   
)

Definition at line 281 of file geometry_unittest.cpp.

References myTestPolygonContainsPoint().

Here is the call graph for this function:

◆ TEST() [9/11]

TEST ( Geometry  ,
changeEpsilon   
)

Definition at line 301 of file geometry_unittest.cpp.

References EXPECT_NEAR(), EXPECT_TRUE(), mrpt::math::getEpsilon(), mrpt::math::intersect(), and mrpt::math::setEpsilon().

Here is the call graph for this function:

◆ TEST() [10/11]

TEST ( Geometry  ,
conformAPlane   
)

Definition at line 327 of file geometry_unittest.cpp.

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

Here is the call graph for this function:

◆ TEST() [11/11]

TEST ( Geometry  ,
RectanglesIntersection   
)

Definition at line 353 of file geometry_unittest.cpp.

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

Here is the call graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020