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