STIR 6.4.0
Coordinate4D.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
10 See STIR/LICENSE.txt for details
11*/
23
24START_NAMESPACE_STIR
25
26template <class coordT>
27Coordinate4D<coordT>::Coordinate4D()
28 : base_type()
29{}
30
31template <class coordT>
32Coordinate4D<coordT>::Coordinate4D(const coordT& c1, const coordT& c2, const coordT& c3, const coordT& c4)
33 : base_type()
34{
35 (*this)[1] = c1;
36 (*this)[2] = c2;
37 (*this)[3] = c3;
38 (*this)[4] = c4;
39}
40
41template <class coordT>
42Coordinate4D<coordT>::Coordinate4D(const base_type& c)
43 : base_type(c)
44{}
45
46template <class coordT>
47Coordinate4D<coordT>&
48Coordinate4D<coordT>::operator=(const base_type& c)
49{
50 base_type::operator=(c);
51 return *this;
52}
53
54END_NAMESPACE_STIR