1 // File: GC_MakeRotation.cxx
2 // Created: Fri Oct 2 16:37:27 1992
6 #include <GC_MakeRotation.ixx>
7 #include <GC_MakeRotation.hxx>
8 #include <StdFail_NotDone.hxx>
10 //=========================================================================
11 // Creation d une rotation 3d de gp d angle Angle par rapport a une +
13 //=========================================================================
15 GC_MakeRotation::GC_MakeRotation(const gp_Lin& Line ,
16 const Standard_Real Angle ) {
17 TheRotation = new Geom_Transformation();
18 TheRotation->SetRotation(gp_Ax1(Line.Location(),Line.Direction()),Angle);
21 //=========================================================================
22 // Creation d une rotation 3d de gp d angle Angle par rapport a un +
24 //=========================================================================
26 GC_MakeRotation::GC_MakeRotation(const gp_Ax1& Axis ,
27 const Standard_Real Angle ) {
28 TheRotation = new Geom_Transformation();
29 TheRotation->SetRotation(Axis,Angle);
32 //=========================================================================
33 // Creation d une rotation 3d de gp d angle Angle par rapport a une +
34 // droite issue du point Point et de direction Direc. +
35 //=========================================================================
37 GC_MakeRotation::GC_MakeRotation(const gp_Pnt& Point ,
39 const Standard_Real Angle ) {
40 TheRotation = new Geom_Transformation();
41 TheRotation->SetRotation(gp_Ax1(Point,Direc),Angle);
44 const Handle(Geom_Transformation)& GC_MakeRotation::Value() const
49 const Handle(Geom_Transformation)& GC_MakeRotation::Operator() const
54 GC_MakeRotation::operator Handle(Geom_Transformation) () const