summaryrefslogtreecommitdiff
path: root/src/GCE2d/GCE2d_MakeRotation.cxx
blob: 2e5b2a3d85bf6ecef0cbf578df6ff24b327c1c0c (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
// File:	GCE2d_MakeRotation.cxx
// Created:	Fri Oct  2 16:37:27 1992
// Author:	Remi GILET
//		<reg@topsn3>

#include <GCE2d_MakeRotation.ixx>

//=========================================================================
//   Creation d une rotation 3d de gp d angle Angle par rapport a une     +
//   droite Line.                                                         +
//=========================================================================

GCE2d_MakeRotation::GCE2d_MakeRotation(const gp_Pnt2d&     Point  ,
				       const Standard_Real Angle ) {
  TheRotation = new Geom2d_Transformation();
  TheRotation->SetRotation(Point,Angle);
}

const Handle(Geom2d_Transformation)& GCE2d_MakeRotation::Value() const
{ 
  return TheRotation;
}

const Handle(Geom2d_Transformation)& GCE2d_MakeRotation::Operator() const 
{
  return TheRotation;
}

GCE2d_MakeRotation::operator Handle(Geom2d_Transformation) () const
{
  return TheRotation;
}