The spica renderer
bounds2d_detail.h
1 #ifdef _MSC_VER
2 #pragma once
3 #endif
4 
5 #ifndef _SPICA_BOUNDS2D_DETAIL_H_
6 #define _SPICA_BOUNDS2D_DETAIL_H_
7 
8 namespace spica {
9 
10 template <class T>
11 Bounds2_<T>::Bounds2_()
12  : posMin_{}
13  , posMax_{} {
14 }
15 
16 template <class T>
17 Bounds2_<T>::Bounds2_(T minx, T miny, T maxx, T maxy)
18  : posMin_{ minx, miny }
19  , posMax_{ maxx, maxy } {
20 }
21 
22 template <class T>
23 Bounds2_<T>::Bounds2_(const Bounds2_<T>& b)
24  : posMin_{ b.posMin_ }
25  , posMax_{ b.posMax_ } {
26 }
27 
28 template <class T>
29 Bounds2_<T>::~Bounds2_() {
30 }
31 
32 template <class T>
33 Bounds2_<T>& Bounds2_<T>::operator=(const Bounds2_<T>& b) {
34  this->posMin_ = b.posMin_;
35  this->posMax_ = b.posMax_;
36  return *this;
37 }
38 
39 } // namespace spica
40 
41 #endif // _SPICA_BOUNDS2D_DETAIL_H_