constixel
Loading...
Searching...
No Matches
constixel::rect< T > Struct Template Reference

basic rectangle structure More...

#include <constixel.hpp>

Public Member Functions

constexpr rect operator& (const rect &other) const
 intersects one rect with another
 
constexpr rectoperator&= (const rect &other)
 intersects one rect with another
 

Public Attributes

x = 0
 x coordinate
 
y = 0
 y coordinate
 
w = 0
 width
 
h = 0
 height
 

Detailed Description

template<typename T>
struct constixel::rect< T >

basic rectangle structure

Template Parameters
Tcoordinate number type

Member Function Documentation

◆ operator&()

template<typename T>
rect constixel::rect< T >::operator& ( const rect< T > & other) const
inlineconstexpr

intersects one rect with another

Parameters
otherthe other rectangle

◆ operator&=()

template<typename T>
rect & constixel::rect< T >::operator&= ( const rect< T > & other)
inlineconstexpr

intersects one rect with another

Parameters
otherthe other rectangle

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