21 #ifndef FUB_GEOMETRY_BALL_HPP
22 #define FUB_GEOMETRY_BALL_HPP
29 template <
int Rank>
class Ball {
31 Ball(
const std::array<double, Rank>& offset,
double radius);
34 std::array<double, Rank> dist;
35 std::transform(x.begin(), x.end(),
offset_.begin(), dist.begin(),
36 [](
double x,
double y) { return x - y; });
37 return std::inner_product(dist.begin(), dist.end(), dist.begin(), 0.0) <
46 template <std::
size_t Rank>
47 Ball(
const std::array<double, Rank>&,
double)->Ball<Rank>;
double radius_
Definition: Ball.hpp:43
Ball(const std::array< double, Rank > &offset, double radius)
double ComputeDistanceTo(const std::array< double, Rank > &x) const
Definition: Ball.hpp:33
std::array< double, Rank > offset_
Definition: Ball.hpp:42
The fub namespace.
Definition: AnyBoundaryCondition.hpp:31
Ball(const std::array< double, Rank > &, double) -> Ball< Rank >