STIR  6.2.0
CartesianCoordinate2D.h
Go to the documentation of this file.
1 #ifndef __stir_CartesianCoordinate2D_H__
2 #define __stir_CartesianCoordinate2D_H__
3 //
4 //
17 /*
18  Copyright (C) 2000 PARAPET partners
19  Copyright (C) 2000 - 2009-06-22, Hammersmith Imanet Ltd
20  Copyright (C) 2012-06-01 - 2012, Kris Thielemans
21  This file is part of STIR.
22 
23  SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
24 
25  See STIR/LICENSE.txt for details
26 */
27 
28 #include "stir/Coordinate2D.h"
29 
30 START_NAMESPACE_STIR
31 
43 template <typename coordT>
44 class CartesianCoordinate2D : public Coordinate2D<coordT>
45 {
46 protected:
48  typedef typename base_type::base_type basebase_type;
49 
50 public:
51  inline CartesianCoordinate2D();
52  inline CartesianCoordinate2D(const coordT&, const coordT&);
54  inline CartesianCoordinate2D& operator=(const BasicCoordinate<2, coordT>& c);
55 
56  inline coordT& y();
57  inline coordT y() const;
58  inline coordT& x();
59  inline coordT x() const;
60 };
61 
62 END_NAMESPACE_STIR
63 
65 
66 #endif
inline implementations for the stir::CartesianCoordinate2D<coordT> class
a templated class for 2-dimensional coordinates.
Definition: Coordinate2D.h:41
a templated class for 2-dimensional coordinates.
Definition: CartesianCoordinate2D.h:44
defines the stir::Coordinate2D<coordT> class