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