45 static constexpr
auto Epsilon = std::numeric_limits<double>::epsilon();
102 rHighPoint = rLowPoint = *rObject;
114 auto radiusExtension =
PointType(Radius, Radius, Radius);
116 rLowPoint =
PointType{*rObject - radiusExtension};
117 rHighPoint =
PointType{*rObject + radiusExtension};
126 rCentralPoint = *rObject;
139 if(std::fabs((*rObj_1)[
i] - (*rObj_2)[
i]) >
Epsilon)
167 double pwdDistance = 0.0f;
171 pwdDistance += std::pow((*rObj_1)[
i] - (*rObj_2)[
i], 2);
174 if (std::sqrt(pwdDistance) >
Epsilon + Radius)
196 if( (*rObject)[
i] < rLowPoint[
i] -
Epsilon || (*rObject)[
i] > rHighPoint[
i] +
Epsilon)
218 if( ((*rObject)[
i] + Radius) < rLowPoint[
i] -
Epsilon || ((*rObject)[
i] - Radius) > rHighPoint[
i] +
Epsilon)
241 double pwdDistance = 0.0f;
245 pwdDistance += std::pow((*rObj_1)[
i] - (*rObj_2)[
i], 2);
248 distance = std::sqrt(pwdDistance);
267 virtual std::string
Info()
const
269 return "Spatial Containers Configure for 'Points'";
273 virtual std::string
Data()
const
275 return "Dimension: " + std::to_string(
Dimension);
281 rOStream <<
Info() << std::endl;
321 rOStream << std::endl;
This object defines an indexed object.
Definition: indexed_object.h:54
Object used by the bin-search.
Definition: interface_object.h:40
Point class.
Definition: point.h:59
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
TContainerType ContainerType
Definition: pointer_vector_set.h:90
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
integer i
Definition: TensorModule.f:17