bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
line_mesh_utils.h File Reference
#include "kernel/geometry/geom_point.h"
#include <vector>
Include dependency graph for line_mesh_utils.h:

Go to the source code of this file.

Namespaces

namespace  kernel
 
namespace  kernel::numerics
 

Functions

const GeomPoint< 2 > kernel::numerics::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 uses samples the EdgeElement using the given number of sampling points plus two as it accounts for the vertices as well. From the calculated points it picks the one with the smallest distance.
 
const std::vector< GeomPoint< 2 > > kernel::numerics::find_intersections (const LineMesh< 2 > &mesh, const Circle &circle)
 Returns the intersection points of the Circle with the elements of the LineMesh. The algorithn implemented is the one described here https://stackoverflow.com/questions/1073336/circle-line-segment-collision-detection-algorithm/1084899#1084899%E2%80%8B.