Classes | Functions | Variables
bodies::detail Namespace Reference

Classes

struct  intersc
 
struct  interscOrder
 

Functions

static double distanceSQR (const Eigen::Vector3d &p, const Eigen::Vector3d &origin, const Eigen::Vector3d &dir)
 Compute the square of the distance between a ray and a point Note: this requires 'dir' to be normalized. More...
 
void filterIntersections (std::vector< detail::intersc > &ipts, EigenSTL::vector_Vector3d *intersections, const size_t count)
 Take intersections points in ipts and add them to intersections, filtering duplicates. More...
 

Variables

static const double ZERO = 1e-9
 

Function Documentation

◆ distanceSQR()

static double bodies::detail::distanceSQR ( const Eigen::Vector3d p,
const Eigen::Vector3d origin,
const Eigen::Vector3d dir 
)
inlinestatic

Compute the square of the distance between a ray and a point Note: this requires 'dir' to be normalized.

Definition at line 127 of file bodies.cpp.

◆ filterIntersections()

void bodies::detail::filterIntersections ( std::vector< detail::intersc > &  ipts,
EigenSTL::vector_Vector3d intersections,
const size_t  count 
)

Take intersections points in ipts and add them to intersections, filtering duplicates.

Parameters
iptsThe source list of intersections (will be modified (sorted)).
intersectionsThe output list of intersection points.
countThe maximum count of returned intersection points. 0 = return all points.

Definition at line 162 of file bodies.cpp.

Variable Documentation

◆ ZERO

const double bodies::detail::ZERO = 1e-9
static

Definition at line 123 of file bodies.cpp.



geometric_shapes
Author(s): Ioan Sucan , Gil Jones
autogenerated on Sun Oct 1 2023 02:40:16