summaryrefslogtreecommitdiff
path: root/src/Geom2d/Geom2d_Conic.cxx
blob: 721b81d1056b9f30a50df8c0cfcaaece83bda1e8 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// File:	Geom2d_Conic.cxx
// Created:	Wed Mar 24 19:20:16 1993
// Author:	JCV
//		<fid@sdsun2>
// Copyright:	Matra Datavision 1993

//File Geom2d_Conic.cx, JCV 12/07/91

#include <Geom2d_Conic.ixx>
#include <gp_Dir2d.hxx>

typedef Geom2d_Conic         Conic;
typedef Handle(Geom2d_Conic) Handle(Conic);

typedef gp_Ax2d  Ax2d;
typedef gp_Dir2d Dir2d;
typedef gp_Pnt2d Pnt2d;
typedef gp_Vec2d Vec2d;






//=======================================================================
//function : SetAxis
//purpose  : 
//=======================================================================

void Geom2d_Conic::SetAxis(const gp_Ax22d& A)
{
  pos.SetAxis(A); 
}

//=======================================================================
//function : SetXAxis
//purpose  : 
//=======================================================================

void Geom2d_Conic::SetXAxis (const Ax2d& A) 
{ 
  pos.SetXAxis(A); 
}

//=======================================================================
//function : SetYAxis
//purpose  : 
//=======================================================================

void Geom2d_Conic::SetYAxis (const Ax2d& A)
{ 
  pos.SetYAxis(A);
}

//=======================================================================
//function : SetLocation
//purpose  : 
//=======================================================================

void Geom2d_Conic::SetLocation (const Pnt2d& P) 
{
  pos.SetLocation (P); 
}

//=======================================================================
//function : XAxis
//purpose  : 
//=======================================================================

Ax2d Geom2d_Conic::XAxis () const 
{ 
  return gp_Ax2d(pos.Location(), pos.XDirection()); 
}

//=======================================================================
//function : YAxis
//purpose  : 
//=======================================================================

Ax2d Geom2d_Conic::YAxis () const 
{
   return gp_Ax2d(pos.Location(), pos.YDirection());
}

//=======================================================================
//function : Location
//purpose  : 
//=======================================================================

Pnt2d Geom2d_Conic::Location () const 
{
 return pos.Location(); 
}

//=======================================================================
//function : Position
//purpose  : 
//=======================================================================

const gp_Ax22d& Geom2d_Conic::Position () const 
{
  return pos; 
}


//=======================================================================
//function : Reverse
//purpose  : 
//=======================================================================

void Geom2d_Conic::Reverse () { 

  Dir2d Temp = pos.YDirection ();
  Temp.Reverse ();
  pos.SetAxis(gp_Ax22d(pos.Location(), pos.XDirection(), Temp));
}

//=======================================================================
//function : Continuity
//purpose  : 
//=======================================================================

GeomAbs_Shape Geom2d_Conic::Continuity () const 
{
  return GeomAbs_CN; 
}

//=======================================================================
//function : IsCN
//purpose  : 
//=======================================================================

Standard_Boolean Geom2d_Conic::IsCN (const Standard_Integer ) const 
{
  return Standard_True; 
}