Helper functions for distance queries. More...
#include <dune/common/fvector.hh>
#include <dune/geometry/quadraturerules.hh>
Go to the source code of this file.
Helper functions for distance queries.
Namespaces | |
namespace | Dumux |
namespace | Dumux::Detail |
Functions | |
template<class Geometry > | |
Geometry::ctype | Dumux::averageDistancePointGeometry (const typename Geometry::GlobalCoordinate &p, const Geometry &geometry, std::size_t integrationOrder=2) |
Compute the average distance from a point to a geometry by integration. More... | |
template<class Point > | |
Point::value_type | Dumux::distancePointLine (const Point &p, const Point &a, const Point &b) |
Compute the distance from a point to a line through the points a and b. More... | |
template<class Geometry > | |
Geometry::ctype | Dumux::distancePointLine (const typename Geometry::GlobalCoordinate &p, const Geometry &geometry) |
Compute the distance from a point to a line given by a geometry with two corners. More... | |
template<class Point > | |
Point::value_type | Dumux::distancePointSegment (const Point &p, const Point &a, const Point &b) |
Compute the distance from a point to the segment connecting the points a and b. More... | |
template<class Geometry > | |
Geometry::ctype | Dumux::distancePointSegment (const typename Geometry::GlobalCoordinate &p, const Geometry &geometry) |
Compute the distance from a point to a given segment geometry. More... | |
template<class Geometry > | |
Geometry::ctype | Dumux::averageDistanceSegmentGeometry (const typename Geometry::GlobalCoordinate &a, const typename Geometry::GlobalCoordinate &b, const Geometry &geometry, std::size_t integrationOrder=2) |
Compute the average distance from a segment to a geometry by integration. More... | |
template<class ctype , int dimWorld> | |
ctype | Dumux::distance (const Dune::FieldVector< ctype, dimWorld > &a, const Dune::FieldVector< ctype, dimWorld > &b) |
Compute the shortest distance between two points. More... | |
template<class Geo1 , class Geo2 > | |
auto | Dumux::distance (const Geo1 &geo1, const Geo2 &geo2) |
Compute the shortest distance between two geometries. More... | |