#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) | |
TEST (Geometry, Intersection3D) | |
TEST (Geometry, IntersectionPlanePlane) | |
void | myTestPolygonContainsPoint (std::vector< TPoint2D > &vs, bool convex) |
TEST (Geometry, PolygonConvexContainsPoint) | |
TEST (Geometry, PolygonConcaveContainsPoint) | |
Definition at line 204 of file geometry_unittest.cpp.
References mrpt::math::TPolygon2D::contains(), and mrpt::math::TPolygon2D::isConvex().
Referenced by TEST().
TEST | ( | Geometry | , |
Intersection3D | |||
) |
Definition at line 79 of file geometry_unittest.cpp.
References mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::GEOMETRIC_TYPE_SEGMENT, and mrpt::math::intersect().
TEST | ( | Geometry | , |
IntersectionPlanePlane | |||
) |
Definition at line 150 of file geometry_unittest.cpp.
References mrpt::math::GEOMETRIC_TYPE_LINE, mrpt::math::GEOMETRIC_TYPE_PLANE, and mrpt::math::intersect().
TEST | ( | Geometry | , |
Line2DIntersect | |||
) |
Definition at line 19 of file geometry_unittest.cpp.
References mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::TObject2D::getPoint(), mrpt::math::TObject2D::getType(), mrpt::math::intersect(), mrpt::math::TPoint2D::x, and mrpt::math::TPoint2D::y.
TEST | ( | Geometry | , |
PolygonConcaveContainsPoint | |||
) |
Definition at line 246 of file geometry_unittest.cpp.
References myTestPolygonContainsPoint().
TEST | ( | Geometry | , |
PolygonConvexContainsPoint | |||
) |
Definition at line 222 of file geometry_unittest.cpp.
References myTestPolygonContainsPoint().
TEST | ( | Geometry | , |
Segment2DIntersect | |||
) |
Definition at line 37 of file geometry_unittest.cpp.
References mrpt::math::GEOMETRIC_TYPE_POINT, mrpt::math::TObject2D::getPoint(), mrpt::math::TObject2D::getType(), mrpt::math::intersect(), mrpt::math::TPoint2D::x, and mrpt::math::TPoint2D::y.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |