b311480e |
1 | // Created on: 2000-05-18 |
2 | // Created by: Peter KURNEV |
973c2be1 |
3 | // Copyright (c) 2000-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
15 | |
16 | #include <IntTools_Range.ixx> |
17 | //======================================================================= |
18 | //function : IntTools_Range::IntTools_Range |
19 | //purpose : |
20 | //======================================================================= |
b311480e |
21 | IntTools_Range::IntTools_Range():myFirst(0.), myLast(0.) {} |
7fd59977 |
22 | |
23 | //======================================================================= |
24 | //function : IntTools_Range::IntTools_Range |
25 | //purpose : |
26 | //======================================================================= |
27 | IntTools_Range::IntTools_Range(const Standard_Real aFirst,const Standard_Real aLast) |
28 | { |
29 | myFirst=aFirst; |
30 | myLast=aLast; |
31 | } |
32 | //======================================================================= |
33 | //function : SetFirst |
34 | //purpose : |
35 | //======================================================================= |
36 | void IntTools_Range::SetFirst(const Standard_Real aFirst) |
37 | { |
38 | myFirst=aFirst; |
39 | } |
40 | //======================================================================= |
41 | //function : SetLast |
42 | //purpose : |
43 | //======================================================================= |
44 | void IntTools_Range::SetLast(const Standard_Real aLast) |
45 | { |
46 | myLast=aLast; |
47 | } |
48 | //======================================================================= |
49 | //function : First |
50 | //purpose : |
51 | //======================================================================= |
52 | Standard_Real IntTools_Range::First() const |
53 | { |
54 | return myFirst; |
55 | } |
56 | //======================================================================= |
57 | //function : Last |
58 | //purpose : |
59 | //======================================================================= |
60 | Standard_Real IntTools_Range::Last() const |
61 | { |
62 | return myLast; |
63 | } |
64 | //======================================================================= |
65 | //function : Range |
66 | //purpose : |
67 | //======================================================================= |
68 | void IntTools_Range::Range(Standard_Real& aFirst,Standard_Real& aLast) const |
69 | { |
70 | aFirst=myFirst; |
71 | aLast =myLast; |
72 | } |