#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) | |
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 | |||
) |
Definition at line 22 of file geometry_unittest.cpp.
References mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::TObject2D::getPoint(), mrpt::math::TObject2D::getType(), and mrpt::math::intersect().
TEST | ( | Geometry | , |
Segment2DIntersect | |||
) |
Definition at line 40 of file geometry_unittest.cpp.
References mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::GEOMETRIC_TYPE_SEGMENT, mrpt::math::TObject2D::getPoint(), mrpt::math::TObject2D::getType(), and mrpt::math::intersect().
TEST | ( | Geometry | , |
PolygonConvexContainsPoint | |||
) |
Definition at line 102 of file geometry_unittest.cpp.
References myTestPolygonContainsPoint().
TEST | ( | Geometry | , |
PolygonConcaveContainsPoint | |||
) |
Definition at line 126 of file geometry_unittest.cpp.
References myTestPolygonContainsPoint().
Page generated by Doxygen 1.8.14 for MRPT 1.5.5 Git: e06b63dbf Fri Dec 1 14:41:11 2017 +0100 at lun oct 28 01:31:35 CET 2019 |