0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
[occt.git] / src / gce / gce_MakeMirror2d.cxx
1 // File:        gce_MakeMirror2d.cxx
2 // Created:     Fri Sep  4 10:56:35 1992
3 // Author:      Remi GILET
4 //              <reg@sdsun1>
5
6 #include <gce_MakeMirror2d.ixx>
7
8 //=========================================================================
9 //   Creation d une symetrie 2d de gp par rapport a un point.             +
10 //=========================================================================
11
12 gce_MakeMirror2d::gce_MakeMirror2d(const gp_Pnt2d&  Point ) 
13 {
14   TheMirror2d.SetMirror(Point); 
15 }
16
17 //=========================================================================
18 //   Creation d une symetrie 2d de gp par rapport a une droite.           +
19 //=========================================================================
20
21 gce_MakeMirror2d::gce_MakeMirror2d(const gp_Ax2d& Axis ) 
22 {
23   TheMirror2d.SetMirror(Axis); 
24 }
25
26 //=========================================================================
27 //   Creation d une symetrie 2d de gp par rapport a une droite.           +
28 //=========================================================================
29
30 gce_MakeMirror2d::gce_MakeMirror2d(const gp_Lin2d&  Line ) 
31 {
32   TheMirror2d.SetMirror(gp_Ax2d(Line.Location(),Line.Direction()));
33 }
34
35 //=========================================================================
36 //   Creation d une symetrie 2d de gp par rapport a une droite definie    +
37 //   par un point et une direction.                                       +
38 //=========================================================================
39
40 gce_MakeMirror2d::gce_MakeMirror2d(const gp_Pnt2d&  Point ,
41                                    const gp_Dir2d&  Direc ) 
42 {
43   TheMirror2d.SetMirror(gp_Ax2d(Point,Direc));
44 }
45
46 const gp_Trsf2d& gce_MakeMirror2d::Value() const 
47
48   return TheMirror2d; 
49 }
50
51 const gp_Trsf2d& gce_MakeMirror2d::Operator() const 
52 {
53   return TheMirror2d;
54 }
55
56 gce_MakeMirror2d::operator gp_Trsf2d() const
57 {
58   return TheMirror2d;
59 }