Quetzal-CoaTL
The Coalescence Template Library
Loading...
Searching...
No Matches
quetzal::geography::extent< T > Class Template Reference

#include <quetzal/geography/extent.hpp>

Detailed Description

template<typename T>
class quetzal::geography::extent< T >

extent of a raster grid object

Template Parameters
Tthe value type used for longitude/latitude.

Public Types

using value_type = T
 

Public Member Functions

Constructors
constexpr extent (value_type lat_min, value_type lat_max, value_type lon_min, value_type lon_max)
 Constructor.
 
Comparison
constexpr bool operator== (const extent &other) const noexcept
 Equality comparison.
 
constexpr bool operator!= (const extent &other) const noexcept
 Unequality comparison.
 
Getters
constexpr value_type lat_min () const noexcept
 Minimal latitude of the spatial extent.
 
constexpr value_type lat_max () const noexcept
 Maximal latitude of the spatial extent.
 
constexpr value_type lon_min () const noexcept
 Minimal longitude of the spatial extent.
 
constexpr value_type lon_max () const noexcept
 Get the maximal longitude of the spatial extent.
 
Setters
constexpr extentlat_min (value_type val) noexcept
 Minimal latitude of the spatial extent.
 
constexpr extentlat_max (value_type val) noexcept
 Maximal longitude of the spatial extent.
 
constexpr extentlon_min (value_type val) noexcept
 Minimal longitude of the spatial extent.
 
constexpr extentlon_max (value_type val) noexcept
 Maximal longitude of the spatial extent.
 

Constructor & Destructor Documentation

◆ extent()

template<typename T >
constexpr quetzal::geography::extent< T >::extent ( value_type  lat_min,
value_type  lat_max,
value_type  lon_min,
value_type  lon_max 
)
inlineexplicitconstexpr

Constructor.

Parameters
lon_minthe minimal longitude of the spatial grid
lon_maxthe mmaximal longitude of the spatial grid
lat_minthe minimal latitude of the spatial grid
lat_maxthe minimal longitude of the spatial grid

Member Function Documentation

◆ operator!=()

template<typename T >
constexpr bool quetzal::geography::extent< T >::operator!= ( const extent< T > &  other) const
inlineconstexprnoexcept

Unequality comparison.

Parameters
otherThe other extent object to be compared
Returns
false if the two objects have same lon_min, lon_max, lat_min, lat_max. Else returns true.

◆ operator==()

template<typename T >
constexpr bool quetzal::geography::extent< T >::operator== ( const extent< T > &  other) const
inlineconstexprnoexcept

Equality comparison.

Parameters
otherThe other extent object to be compared
Returns
true if the two objects have same lon_min, lon_max, lat_min, lat_max. Else returns false.

The documentation for this class was generated from the following file: