7fd59977 |
1 | // File: PGeom_Hyperbola.cxx |
2 | // Created: Wed Mar 3 18:12:07 1993 |
3 | // Author: Philippe DAUTRY |
4 | // <fid@phylox> |
5 | // Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | #include <PGeom_Hyperbola.ixx> |
9 | |
10 | //======================================================================= |
11 | //function : PGeom_Hyperbola |
12 | //purpose : |
13 | //======================================================================= |
14 | |
15 | PGeom_Hyperbola::PGeom_Hyperbola() |
16 | {} |
17 | |
18 | |
19 | //======================================================================= |
20 | //function : PGeom_Hyperbola |
21 | //purpose : |
22 | //======================================================================= |
23 | |
24 | PGeom_Hyperbola::PGeom_Hyperbola |
25 | (const gp_Ax2& aPosition, |
26 | const Standard_Real aMajorRadius, |
27 | const Standard_Real aMinorRadius) : |
28 | PGeom_Conic(aPosition), |
29 | majorRadius(aMajorRadius), |
30 | minorRadius(aMinorRadius) |
31 | {} |
32 | |
33 | |
34 | //======================================================================= |
35 | //function : MajorRadius |
36 | //purpose : |
37 | //======================================================================= |
38 | |
39 | void PGeom_Hyperbola::MajorRadius(const Standard_Real aMajorRadius) |
40 | { majorRadius = aMajorRadius; } |
41 | |
42 | |
43 | //======================================================================= |
44 | //function : MajorRadius |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | Standard_Real PGeom_Hyperbola::MajorRadius() const |
49 | { return majorRadius; } |
50 | |
51 | |
52 | //======================================================================= |
53 | //function : MinorRadius |
54 | //purpose : |
55 | //======================================================================= |
56 | |
57 | void PGeom_Hyperbola::MinorRadius(const Standard_Real aMinorRadius) |
58 | { minorRadius = aMinorRadius; } |
59 | |
60 | |
61 | //======================================================================= |
62 | //function : MinorRadius |
63 | //purpose : |
64 | //======================================================================= |
65 | |
66 | Standard_Real PGeom_Hyperbola::MinorRadius() const |
67 | { return minorRadius; } |