version 3.10.0
Loading...
Searching...
No Matches
boundingsphere.hh File Reference

A function to compute bounding spheres of points clouds or convex polytopes.

#include <algorithm>
#include <vector>
#include <dumux/geometry/sphere.hh>

Go to the source code of this file.

Classes

struct  Dumux::Detail::PointsToGeometryWrapper< Scalar, dim >

Namespaces

namespace  Dumux
namespace  Dumux::Detail
 Distance implementation details.

Functions

template<class ConvexGeometry>
static Sphere< typename ConvexGeometry::ctype, ConvexGeometry::coorddimension > Dumux::boundingSphere (const ConvexGeometry &geometry)
 Computes a bounding sphere of a convex polytope geometry (Dune::Geometry interface).
template<class Scalar, int dim>
static Sphere< Scalar, dim > Dumux::boundingSphere (const std::vector< Dune::FieldVector< Scalar, dim > > &points)
 Computes a bounding sphere of points.