The spica renderer
bsphere_detail.h
1 #ifndef _MSC_VER
2 #pragma once
3 #endif
4 
5 #ifndef _SPICA_BSPHERE_DETAIL_H_
6 #define _SPICA_BSPHERE_DETAIL_H_
7 
8 namespace spica {
9 
10 template <class T>
11 BSphere_<T>::BSphere_()
12  : center_{}
13  , radius_{} {
14 }
15 
16 template <class T>
17 BSphere_<T>::BSphere_(const Point3d &center, double radius)
18  : center_{center}
19  , radius_{radius} {
20 }
21 
22 template <class T>
23 BSphere_<T>::BSphere_(const BSphere_<T> &sph)
24  : BSphere_{} {
25  this->operator=(sph);
26 }
27 
28 template <class T>
29 BSphere_<T> & BSphere_<T>::operator=(const BSphere_<T> &sph) {
30  this->center_ = sph.center_;
31  this->radius_ = sph.radius_;
32  return *this;
33 }
34 
35 } // namespace spica
36 
37 #endif // _SPICA_BSPHERE_DETAIL_H_