bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
line_mesh_utils.h
Go to the documentation of this file.
1#ifndef LINE_MESH_UTILS_H
2#define LINE_MESH_UTILS_H
3
4#include "kernel/geometry/geom_point.h"
5
6#include <vector>
7
8namespace kernel
9{
10
12class Circle;
13
14namespace numerics
15{
16
17template <int dim> class LineMesh;
18
25const GeomPoint<2> find_closest_point_to(const LineMesh<2> &mesh, const GeomPoint<2> &p,
26 uint_t nsamples, real_t tol);
27
32const std::vector<GeomPoint<2>> find_intersections(const LineMesh<2> &mesh, const Circle &circle);
33
34} // namespace numerics
35
36} // namespace kernel
37
38#endif // LINE_MESH_UTILS_H
Definition line_mesh_utils.h:17
const GeomPoint< 2 > find_closest_point_to(const LineMesh< 2 > &mesh, const GeomPoint< 2 > &p, uint_t nsamples, real_t tol)
Find the closest point on the given LineMesh The function loops over the elements in the mesh and use...
Definition line_mesh_utils.cpp:17
const std::vector< GeomPoint< 2 > > find_intersections(const LineMesh< 2 > &mesh, const Circle &circle)
Returns the intersection points of the Circle with the elements of the LineMesh. The algorithn implem...
Definition line_mesh_utils.cpp:139
Definition line_mesh_utils.cpp:13