Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Select3D / Select3D_Pnt2d.hxx
CommitLineData
7fd59977 1#ifndef _Select3D_Pnt2d_HeaderFile
2#define _Select3D_Pnt2d_HeaderFile
3
4#include<gp_Pnt2d.hxx>
5#include<Standard_ShortReal.hxx>
6#include<Select3D_Macro.hxx>
7
8struct Select3D_Pnt2d{
9
10 Standard_ShortReal x, y;
11
12 inline operator gp_Pnt2d() const
13 {
14 return gp_Pnt2d(x, y);
15 }
16
17 inline operator gp_XY() const
18 {
19 return gp_XY(x, y);
20 }
21
22 inline gp_Pnt2d operator = (const gp_Pnt2d& thePnt)
23 {
24 x = DToF(thePnt.X());
25 y = DToF(thePnt.Y());
26 return *this;
27 }
28
29
30};
31
32#endif
33