0024573: Wrong result of 2d-offset algorithm on customer's shape
[occt.git] / src / Bisector / Bisector_PointOnBis.cxx
CommitLineData
b311480e 1// Created on: 1994-01-10
2// Created by: Yves FRICAUD
3// Copyright (c) 1994-1999 Matra Datavision
973c2be1 4// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5//
973c2be1 6// This file is part of Open CASCADE Technology software library.
b311480e 7//
973c2be1 8// This library is free software; you can redistribute it and / or modify it
9// under the terms of the GNU Lesser General Public version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
b311480e 13//
973c2be1 14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
7fd59977 16
17#include <Bisector_PointOnBis.ixx>
18
19
20//=============================================================================
21//function :
22// purpose :
23//=============================================================================
24Bisector_PointOnBis::Bisector_PointOnBis()
25{
26}
27
28//=============================================================================
29//function :
30// purpose :
31//=============================================================================
32Bisector_PointOnBis::Bisector_PointOnBis(const Standard_Real Param1,
33 const Standard_Real Param2,
34 const Standard_Real ParamBis,
35 const Standard_Real Distance,
36 const gp_Pnt2d& P)
37: param1 (Param1),
38 param2 (Param2),
39 paramBis (ParamBis),
40 distance (Distance),
41 point (P)
42{
43 infinite = Standard_False;
44}
45
46//=============================================================================
47//function : ParamOnC1
48// purpose :
49//=============================================================================
50void Bisector_PointOnBis::ParamOnC1(const Standard_Real Param)
51{
52 param1 = Param;
53}
54
55//=============================================================================
56//function : ParamOnC2
57// purpose :
58//=============================================================================
59void Bisector_PointOnBis::ParamOnC2(const Standard_Real Param)
60{
61 param2 = Param;
62}
63
64//=============================================================================
65//function : ParamOnBis
66// purpose :
67//=============================================================================
68void Bisector_PointOnBis::ParamOnBis(const Standard_Real Param)
69{
70 paramBis = Param;
71}
72
73//=============================================================================
74//function : Distance
75// purpose :
76//=============================================================================
77void Bisector_PointOnBis::Distance(const Standard_Real Distance)
78{
79 distance = Distance;
80}
81
82//=============================================================================
83//function : Point
84// purpose :
85//=============================================================================
86void Bisector_PointOnBis::Point (const gp_Pnt2d& P)
87{
88 point = P;
89}
90
91//=============================================================================
92//function : IsInfinite
93// purpose :
94//=============================================================================
95void Bisector_PointOnBis::IsInfinite(const Standard_Boolean Infinite)
96{
97 infinite = Infinite;
98}
99
100//=============================================================================
101//function : ParamOnC1
102// purpose :
103//=============================================================================
104Standard_Real Bisector_PointOnBis::ParamOnC1()const
105{
106 return param1;
107}
108
109//=============================================================================
110//function : ParamOnC2
111// purpose :
112//=============================================================================
113Standard_Real Bisector_PointOnBis::ParamOnC2()const
114{
115 return param2;
116}
117
118//=============================================================================
119//function : ParamOnBis
120// purpose :
121//=============================================================================
122Standard_Real Bisector_PointOnBis::ParamOnBis()const
123{
124 return paramBis;
125}
126
127//=============================================================================
128//function : Distance
129// purpose :
130//=============================================================================
131Standard_Real Bisector_PointOnBis::Distance()const
132{
133 return distance;
134}
135
136//=============================================================================
137//function : Point
138// purpose :
139//=============================================================================
140gp_Pnt2d Bisector_PointOnBis::Point ()const
141{
142 return point;
143}
144
145//=============================================================================
146//function : IsInfinite
147// purpose :
148//=============================================================================
149Standard_Boolean Bisector_PointOnBis::IsInfinite() const
150{
151 return infinite;
152}
153
154//=============================================================================
155//function : Dump
156// purpose :
157//=============================================================================
158void Bisector_PointOnBis::Dump() const
159{
160 cout <<"Param1 :"<<param1<<endl;
161 cout <<"Param2 :"<<param2<<endl;
162 cout <<"Param Bis :"<<paramBis<<endl;
163 cout <<"Distance :"<<distance<<endl;
164}