Collision Checker
geometry_queries.h
Go to the documentation of this file.
1 #ifndef CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_GEOMETRY_QUERIES_H_
2 #define CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_GEOMETRY_QUERIES_H_
3 
6 
7 namespace collision
8 
9 {
10 namespace geometry_queries {
11 
13  const CollisionObject* second);
14 
15 std::size_t test_polygon_enclosure(const ShapeGroup& sg_polygons,
16  const RectangleOBB& obb, bool& res);
17 
19  Eigen::Vector2d pt2,
20  double rect_width);
21 
22 int create_rectangles_obb_from_vertex_list(std::vector<Eigen::Vector2d>& verts,
23  collision::ShapeGroup* sg_rects_ptr,
24  double rect_width);
25 
26 } // namespace geometry_queries
27 
28 
29 namespace detail {
30 namespace geometry_queries {
31 
32 OBB merge_obbs(const OBB& obb1, const OBB& obb2);
33 
35  const RectangleOBB* second);
36 
37 int ccd_merge_entities(const Sphere* first,
38  const Sphere* second, ShapeGroupPtr ret);
39 
40 } // namespace geometry_queries
41 } // namespace detail
42 } // namespace collision
43 
44 #endif /* CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_GEOMETRY_QUERIES_H_ */
Oriented rectangle.
Definition: rectangle_obb.h:19
OBB merge_obbs(const OBB &obb1, const OBB &obb2)
ShapeGroup can contain simple shapes.
Definition: shape_group.h:33
RectangleOBBConstPtr create_rectangle_obb_from_points(Eigen::Vector2d pt1, Eigen::Vector2d pt2, double rect_width)
std::shared_ptr< const RectangleOBB > RectangleOBBConstPtr
int create_rectangles_obb_from_vertex_list(std::vector< Eigen::Vector2d > &verts, collision::ShapeGroup *sg_rects_ptr, double rect_width)
std::shared_ptr< const CollisionObject > CollisionObjectConstPtr
Circle.
Definition: sphere.h:14
std::shared_ptr< ShapeGroup > ShapeGroupPtr
Definition: polygon.h:17
CollisionObjectConstPtr ccd_merge_entities(const CollisionObject *first, const CollisionObject *second)
std::size_t test_polygon_enclosure(const ShapeGroup &sg_polygons, const RectangleOBB &obb, bool &res)
Base class for CollisionObjects and some of their groups.