0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
[occt.git] / src / gce / gce_MakeMirror.cxx
1 // File:        gce_MakeMirror.cxx
2 // Created:     Fri Sep  4 10:56:35 1992
3 // Author:      Remi GILET
4 //              <reg@sdsun1>
5
6 #include <gce_MakeMirror.ixx>
7 #include <gp_Ax3.hxx>
8
9 //=========================================================================
10 //   Creation d une symetrie  de gp par rapport a un point.             +
11 //=========================================================================
12
13 gce_MakeMirror::gce_MakeMirror(const gp_Pnt&  Point ) 
14
15   TheMirror.SetMirror(Point); 
16 }
17
18 //=========================================================================
19 //   Creation d une symetrie  de gp par rapport a une droite.           +
20 //=========================================================================
21
22 gce_MakeMirror::gce_MakeMirror(const gp_Ax1& Axis ) 
23
24   TheMirror.SetMirror(Axis); 
25 }
26
27 //=========================================================================
28 //   Creation d une symetrie  de gp par rapport a une droite.           +
29 //=========================================================================
30
31 gce_MakeMirror::gce_MakeMirror(const gp_Lin&  Line ) 
32 {
33   TheMirror.SetMirror(gp_Ax1(Line.Location(),Line.Direction()));
34 }
35
36 //=========================================================================
37 //   Creation d une symetrie  de gp par rapport a une droite definie    +
38 //   par un point et une direction.                                       +
39 //=========================================================================
40
41 gce_MakeMirror::gce_MakeMirror(const gp_Pnt&  Point ,
42                                const gp_Dir&  Direc ) 
43 {
44   TheMirror.SetMirror(gp_Ax1(Point,Direc));
45 }
46
47 //=========================================================================
48 //   Creation d une symetrie 3d de gp par rapport a un plan defini par    +
49 //   un Ax2 (Normale au plan et axe x du plan).                           +
50 //=========================================================================
51
52 gce_MakeMirror::gce_MakeMirror(const gp_Ax2&  Plane ) 
53
54   TheMirror.SetMirror(Plane); 
55 }
56
57 //=========================================================================
58 //   Creation d une symetrie 3d de gp par rapport a un plan Plane.        +
59 //=========================================================================
60
61 gce_MakeMirror::gce_MakeMirror(const gp_Pln& Plane ) 
62 {
63   TheMirror.SetMirror(Plane.Position().Ax2());
64 }
65
66 const gp_Trsf& gce_MakeMirror::Value() const
67
68   return TheMirror; 
69 }
70
71 const gp_Trsf& gce_MakeMirror::Operator() const 
72 {
73   return TheMirror;
74 }
75
76 gce_MakeMirror::operator gp_Trsf() const
77 {
78   return TheMirror;
79 }