1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2012 OPEN CASCADE SAS
4 // The content of this file is subject to the Open CASCADE Technology Public
5 // License Version 6.5 (the "License"). You may not use the content of this file
6 // except in compliance with the License. Please obtain a copy of the License
7 // at http://www.opencascade.org and read it completely before using this file.
9 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 // The Original Code and all software distributed under the License is
13 // distributed on an "AS IS" basis, without warranty of any kind, and the
14 // Initial Developer hereby disclaims all such warranties, including without
15 // limitation, any warranties of merchantability, fitness for a particular
16 // purpose or non-infringement. Please see the License for the specific terms
17 // and conditions governing the rights and limitations under the License.
21 //=======================================================================
24 //=======================================================================
26 const gp_Pnt& gp::Origin()
28 static gp_Pnt gp_Origin(0,0,0);
32 //=======================================================================
35 //=======================================================================
37 const gp_Dir& gp::DX()
39 static gp_Dir gp_DX(1,0,0);
43 //=======================================================================
46 //=======================================================================
48 const gp_Dir& gp::DY()
50 static gp_Dir gp_DY(0,1,0);
54 //=======================================================================
57 //=======================================================================
59 const gp_Dir& gp::DZ()
61 static gp_Dir gp_DZ(0,0,1);
65 //=======================================================================
68 //=======================================================================
70 const gp_Ax1& gp::OX()
72 static gp_Ax1 gp_OX(gp_Pnt(0,0,0),gp_Dir(1,0,0));
76 //=======================================================================
79 //=======================================================================
81 const gp_Ax1& gp::OY()
83 static gp_Ax1 gp_OY(gp_Pnt(0,0,0),gp_Dir(0,1,0));
87 //=======================================================================
90 //=======================================================================
92 const gp_Ax1& gp::OZ()
94 static gp_Ax1 gp_OZ(gp_Pnt(0,0,0),gp_Dir(0,0,1));
98 //=======================================================================
101 //=======================================================================
103 const gp_Ax2& gp::XOY()
105 static gp_Ax2 gp_XOY(gp_Pnt(0,0,0),gp_Dir(0,0,1),gp_Dir(1,0,0));
109 //=======================================================================
112 //=======================================================================
114 const gp_Ax2& gp::ZOX()
116 static gp_Ax2 gp_ZOX(gp_Pnt(0,0,0),gp_Dir(0,1,0),gp_Dir(0,0,1));
120 //=======================================================================
123 //=======================================================================
125 const gp_Ax2& gp::YOZ()
127 static gp_Ax2 gp_YOZ(gp_Pnt(0,0,0),gp_Dir(1,0,0),gp_Dir(0,1,0));
131 //=======================================================================
132 //function : Origin2d
134 //=======================================================================
136 const gp_Pnt2d& gp::Origin2d()
138 static gp_Pnt2d gp_Origin2d(0,0);
142 //=======================================================================
145 //=======================================================================
147 const gp_Dir2d& gp::DX2d()
149 static gp_Dir2d gp_DX2d(1,0);
153 //=======================================================================
156 //=======================================================================
158 const gp_Dir2d& gp::DY2d()
160 static gp_Dir2d gp_DY2d(0,1);
164 //=======================================================================
167 //=======================================================================
169 const gp_Ax2d& gp::OX2d()
171 static gp_Ax2d gp_OX2d(gp_Pnt2d(0,0),gp_Dir2d(1,0));
175 //=======================================================================
178 //=======================================================================
180 const gp_Ax2d& gp::OY2d()
182 static gp_Ax2d gp_OY2d(gp_Pnt2d(0,0),gp_Dir2d(0,1));