STIR 6.4.0
Coordinate2D.inl
Go to the documentation of this file.
1//
2//
3/*
4 Copyright (C) 2000 PARAPET partners
5 Copyright (C) 2000- 2007, Hammersmith Imanet Ltd
6 This file is part of STIR.
7
8 SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
9 See STIR/LICENSE.txt for details
10*/
22
23START_NAMESPACE_STIR
24
25template <class coordT>
26Coordinate2D<coordT>::Coordinate2D()
27 : base_type()
28{}
29
30template <class coordT>
31Coordinate2D<coordT>::Coordinate2D(const coordT& c1, const coordT& c2)
32 : base_type()
33{
34 (*this)[1] = c1;
35 (*this)[2] = c2;
36}
37
38template <class coordT>
39Coordinate2D<coordT>::Coordinate2D(const base_type& c)
40 : base_type(c)
41{}
42
43template <class coordT>
44Coordinate2D<coordT>&
45Coordinate2D<coordT>::operator=(const base_type& c)
46{
47 base_type::operator=(c);
48 return *this;
49}
50
51END_NAMESPACE_STIR