STIR 6.4.0
IndexRange2D.inl
Go to the documentation of this file.
1//
2//
13/*
14 Copyright (C) 2000 PARAPET partners
15 Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
16 This file is part of STIR.
17
18 SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
19
20 See STIR/LICENSE.txt for details
21*/
22
23#include "stir/Coordinate2D.h"
24
25START_NAMESPACE_STIR
26
27IndexRange2D::IndexRange2D()
28 : base_type()
29{}
30
31IndexRange2D::IndexRange2D(const IndexRange<2>& range_v)
32 : base_type(range_v)
33{}
34
35IndexRange2D::IndexRange2D(const int min_1, const int max_1, const int min_2, const int max_2)
36 : base_type(Coordinate2D<int>(min_1, min_2), Coordinate2D<int>(max_1, max_2))
37{}
38
39IndexRange2D::IndexRange2D(const int length_1, const int length_2)
40 : base_type(Coordinate2D<int>(0, 0), Coordinate2D<int>(length_1 - 1, length_2 - 1))
41{}
42
43END_NAMESPACE_STIR
defines the stir::Coordinate2D<coordT> class