0024313: BRepAlgoAPI_Section and IntTools_FaceFace aren't written to handle Geom_Surf...
[occt.git] / src / IntTools / IntTools_Range.cxx
CommitLineData
b311480e 1// Created on: 2000-05-18
2// Created by: Peter KURNEV
3// Copyright (c) 2000-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
7fd59977 20
21
22#include <IntTools_Range.ixx>
23//=======================================================================
24//function : IntTools_Range::IntTools_Range
25//purpose :
26//=======================================================================
b311480e 27IntTools_Range::IntTools_Range():myFirst(0.), myLast(0.) {}
7fd59977 28
29//=======================================================================
30//function : IntTools_Range::IntTools_Range
31//purpose :
32//=======================================================================
33 IntTools_Range::IntTools_Range(const Standard_Real aFirst,const Standard_Real aLast)
34{
35 myFirst=aFirst;
36 myLast=aLast;
37}
38//=======================================================================
39//function : SetFirst
40//purpose :
41//=======================================================================
42 void IntTools_Range::SetFirst(const Standard_Real aFirst)
43{
44 myFirst=aFirst;
45}
46//=======================================================================
47//function : SetLast
48//purpose :
49//=======================================================================
50 void IntTools_Range::SetLast(const Standard_Real aLast)
51{
52 myLast=aLast;
53}
54//=======================================================================
55//function : First
56//purpose :
57//=======================================================================
58 Standard_Real IntTools_Range::First() const
59{
60 return myFirst;
61}
62//=======================================================================
63//function : Last
64//purpose :
65//=======================================================================
66 Standard_Real IntTools_Range::Last() const
67{
68 return myLast;
69}
70//=======================================================================
71//function : Range
72//purpose :
73//=======================================================================
74 void IntTools_Range::Range(Standard_Real& aFirst,Standard_Real& aLast) const
75{
76 aFirst=myFirst;
77 aLast =myLast;
78}