Parasol Planning Library (PPL)
Functions
BoundaryIntersection.h File Reference
#include <cstddef>
#include <vector>
Include dependency graph for BoundaryIntersection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector< double > RejectionSampleIntersection (const Boundary *const _b1, const Boundary *const _b2, const size_t _maxAttempts=10, size_t *const _attempts=nullptr) noexcept
 

Function Documentation

◆ RejectionSampleIntersection()

std::vector<double> RejectionSampleIntersection ( const Boundary *const  _b1,
const Boundary *const  _b2,
const size_t  _maxAttempts = 10,
size_t *const  _attempts = nullptr 
)
noexcept

Use rejection sampling to find a point on the intersection of two boundaries.

Parameters
_b1The first boundary.
_b2The second boundary.
_maxAttemptsThe maximum number of attempts.
_attemptsOptionally returns the number of attempts made.
Returns
A point within both boundaries, or an empty vector if none was found.