summaryrefslogtreecommitdiff
path: root/src/PGeom2d/PGeom2d_Hyperbola.cxx
blob: dd60f18ff03316e23a8244871e001f6fc5c4d48c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// File:	PGeom2d_Hyperbola.cxx
// Created:	Wed Mar  3 18:12:07 1993
// Author:	Philippe DAUTRY
//		<fid@phylox>
// Copyright:	Matra Datavision 1993


#include <PGeom2d_Hyperbola.ixx>

//=======================================================================
//function : PGeom2d_Hyperbola
//purpose  : 
//=======================================================================

PGeom2d_Hyperbola::PGeom2d_Hyperbola()
{}


//=======================================================================
//function : PGeom2d_Hyperbola
//purpose  : 
//=======================================================================

PGeom2d_Hyperbola::PGeom2d_Hyperbola
  (const gp_Ax22d& aPosition,
   const Standard_Real aMajorRadius,
   const Standard_Real aMinorRadius) :
  PGeom2d_Conic(aPosition),
  majorRadius(aMajorRadius),
  minorRadius(aMinorRadius)
{}


//=======================================================================
//function : MajorRadius
//purpose  : 
//=======================================================================

void  PGeom2d_Hyperbola::MajorRadius(const Standard_Real aMajorRadius)
{ majorRadius = aMajorRadius; }


//=======================================================================
//function : MajorRadius
//purpose  : 
//=======================================================================

Standard_Real  PGeom2d_Hyperbola::MajorRadius() const 
{ return majorRadius; }


//=======================================================================
//function : MinorRadius
//purpose  : 
//=======================================================================

void  PGeom2d_Hyperbola::MinorRadius(const Standard_Real aMinorRadius)
{ minorRadius = aMinorRadius; }


//=======================================================================
//function : MinorRadius
//purpose  : 
//=======================================================================

Standard_Real  PGeom2d_Hyperbola::MinorRadius() const 
{ return minorRadius; }