@@ -9,48 +9,44 @@ namespace std::experimental::io2d {
99 float _Width = 0 .0F ;
1010 float _Height = 0 .0F ;
1111 public:
12- constexpr bounding_box () noexcept ;
13- constexpr bounding_box (float x, float y, float width, float height) noexcept ;
14- constexpr bounding_box (const point_2d& tl, const point_2d& br) noexcept ;
12+ constexpr bounding_box () noexcept ;
13+ constexpr bounding_box (float x, float y, float width, float height) noexcept ;
14+ constexpr bounding_box (point_2d tl, point_2d br) noexcept ;
1515
16- constexpr void x (float value ) noexcept ;
17- constexpr void y (float value ) noexcept ;
18- constexpr void width (float value ) noexcept ;
19- constexpr void height (float value ) noexcept ;
20- constexpr void top_left (const point_2d& value ) noexcept ;
21- constexpr void bottom_right (const point_2d& value ) noexcept ;
16+ constexpr void x (float val ) noexcept ;
17+ constexpr void y (float val ) noexcept ;
18+ constexpr void width (float val ) noexcept ;
19+ constexpr void height (float val ) noexcept ;
20+ constexpr void top_left (point_2d val ) noexcept ;
21+ constexpr void bottom_right (point_2d val ) noexcept ;
2222
2323 constexpr float x () const noexcept ;
2424 constexpr float y () const noexcept ;
2525 constexpr float width () const noexcept ;
2626 constexpr float height () const noexcept ;
27- constexpr float left () const noexcept ;
28- constexpr float right () const noexcept ;
29- constexpr float top () const noexcept ;
30- constexpr float bottom () const noexcept ;
3127 constexpr point_2d top_left () const noexcept ;
3228 constexpr point_2d bottom_right () const noexcept ;
3329
3430 friend constexpr bool operator ==(const bounding_box& lhs, const bounding_box& rhs) noexcept ;
3531 };
3632
37- constexpr bool operator ==(const bounding_box& lhs, const bounding_box& rhs) noexcept ;
38- constexpr bool operator !=(const bounding_box& lhs, const bounding_box& rhs) noexcept ;
39-
40- class circle {
33+ constexpr bool operator ==(const bounding_box& lhs, const bounding_box& rhs) noexcept ;
34+ constexpr bool operator !=(const bounding_box& lhs, const bounding_box& rhs) noexcept ;
35+
36+ class circle {
4137 point_2d _Center;
4238 float _Radius;
4339 public:
44- constexpr circle () noexcept ;
45- constexpr circle (const point_2d& ctr, float r ) noexcept ;
40+ constexpr circle () noexcept ;
41+ constexpr circle (point_2d ctr, float rad ) noexcept ;
4642
47- constexpr void center (const point_2d& ctr) noexcept ;
48- constexpr void radius (float r) noexcept ;
43+ constexpr void center (point_2d ctr) noexcept ;
44+ constexpr void radius (float r) noexcept ;
4945
50- constexpr point_2d center () const noexcept ;
51- constexpr float radius () const noexcept ;
46+ constexpr point_2d center () const noexcept ;
47+ constexpr float radius () const noexcept ;
5248
53- constexpr bool operator ==(const circle& rhs) noexcept ;
49+ constexpr bool operator ==(const circle& rhs) noexcept ;
5450 constexpr bool operator !=(const circle& rhs) noexcept ;
5551 };
5652
0 commit comments