Template Function rcppsw::spatial::xspan(const TCoord&, const double&)

Function Documentation

template<typename TCoord, typename std::enable_if<std::is_floating_point<typename TCoord::value_type>::value, int>::type = 0>
static inline rmath::ranged rcppsw::spatial::xspan(const TCoord &anchor, const double &dim)

Calculate the span in {X,Y,Z} in real coordinates of an entity given the position of its 3D center and dimension in {X,Y<Z}.

Returns:

The span in {X,Y,Z} of the entity.