Template Function rcppsw::spatial::xspan(const TCoord&, size_t)
Defined in File spatial.hpp
Function Documentation
-
template<typename TCoord, typename std::enable_if<!std::is_floating_point<typename TCoord::value_type>::value, int>::type = 0>
static inline rmath::rangez rcppsw::spatial::xspan(const TCoord &anchor, size_t dim) Calculate the span in {X,Y,Z} in discrete coordinates of an entity given its discrete anchor (2D or 3D) and {X,Y,Z} dimension.
This function can only be called for entities which have a defined discrete center.
- Returns:
The span in {X,Y,Z} of the entity (closed interval).