Integration of OCCT 6.5.0 from SVN
[occt.git] / src / gce / gce_MakeTranslation.cxx
1 // File:        gce_MakeTranslation.cxx
2 // Created:     Thu Sep  3 17:18:54 1992
3 // Author:      Remi GILET
4 //              <reg@sdsun1>
5
6 #include <gce_MakeTranslation.ixx>
7
8 //=========================================================================
9 //   Creation d une translation 3d de gp de vecteur de tanslation Vec.    +
10 //=========================================================================
11
12 gce_MakeTranslation::
13   gce_MakeTranslation(const gp_Vec&  Vec ) {
14    TheTranslation.SetTranslation(Vec);
15  }
16
17 //=========================================================================
18 //   Creation d une translation 3d de gp de vecteur de tanslation le      +
19 //   vecteur reliant Point1 a Point2.                                     +
20 //=========================================================================
21
22 gce_MakeTranslation::
23   gce_MakeTranslation(const gp_Pnt&  Point1 ,
24                       const gp_Pnt&  Point2 ) {
25    TheTranslation.SetTranslation(gp_Vec(Point1,Point2));
26  }
27
28 const gp_Trsf& gce_MakeTranslation::Value() const
29
30   return TheTranslation; 
31 }
32
33 const gp_Trsf& gce_MakeTranslation::Operator() const 
34 {
35   return TheTranslation;
36 }
37
38 gce_MakeTranslation::operator gp_Trsf() const
39 {
40   return TheTranslation;
41 }