MapLink Pro .
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
envitia::bounds< T, left, right > Struct Template Reference

Two-dimensional bounds formed from X and Y intervals. More...

Detailed Description

template<typename T, interval_type left, interval_type right>
struct envitia::bounds< T, left, right >

Two-dimensional bounds formed from X and Y intervals.

Template Parameters
TCoordinate type.
leftWhether the lower endpoints are open or closed.
rightWhether the upper endpoints are open or closed.

Public Types

using interval_t = interval<T, left, right>

Public Member Functions

constexpr bool operator== (bounds const &rhs) const
 Compare the X and Y intervals of two bounds.
constexpr bool operator!= (bounds const &rhs) const
 Test whether either axis interval differs.

Public Attributes

interval_t x
interval_t y

Member Typedef Documentation

◆ interval_t

template<typename T, interval_type left, interval_type right>
using envitia::bounds< T, left, right >::interval_t = interval<T, left, right>

Member Function Documentation

◆ operator!=()

template<typename T, interval_type left, interval_type right>
bool envitia::bounds< T, left, right >::operator!= ( bounds< T, left, right > const & rhs) const
inlineconstexpr

Test whether either axis interval differs.

Parameters
rhsBounds to compare with.
Returns
Whether at least one axis interval differs.

◆ operator==()

template<typename T, interval_type left, interval_type right>
bool envitia::bounds< T, left, right >::operator== ( bounds< T, left, right > const & rhs) const
inlineconstexpr

Compare the X and Y intervals of two bounds.

Parameters
rhsBounds to compare with.
Returns
Whether both axis intervals are equal.

Member Data Documentation

◆ x

template<typename T, interval_type left, interval_type right>
interval_t envitia::bounds< T, left, right >::x

◆ y

template<typename T, interval_type left, interval_type right>
interval_t envitia::bounds< T, left, right >::y