0023258: Missing parenthesis
[occt.git] / src / BSplCLib / BSplCLib_3.cxx
1 // Created on: 1995-05-19
2 // Created by: Xavier BENVENISTE
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
5 //
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
10 //
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 //
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
20
21
22 #include <BSplCLib.ixx>
23 #include <Standard_NotImplemented.hxx>
24
25 // BSpline Curve in 3d space
26 // ***************************
27
28 #define Dimension_gen 3
29
30 #define Array1OfPoints  TColgp_Array1OfPnt
31 #define Point           gp_Pnt
32 #define Vector          gp_Vec
33
34 #define PointToCoords(carr,pnt,op) \
35 (carr)[0] = (pnt).X() op,  \
36         (carr)[1] = (pnt).Y() op,  \
37         (carr)[2] = (pnt).Z() op
38
39 #define CoordsToPoint(pnt,carr,op) \
40         (pnt).SetX ((carr)[0] op), \
41         (pnt).SetY ((carr)[1] op), \
42         (pnt).SetZ ((carr)[2] op)
43
44 #define NullifyPoint(pnt) \
45         (pnt).SetCoord (0.,0.,0.)
46
47 #define NullifyCoords(carr) \
48         (carr)[0] = (carr)[1] = (carr)[2] = 0.
49
50 #define ModifyCoords(carr,op) \
51         (carr)[0] op,          \
52         (carr)[1] op,          \
53         (carr)[2] op
54
55 #define CopyCoords(carr,carr2) \
56         (carr)[0] = (carr2)[0], \
57         (carr)[1] = (carr2)[1], \
58         (carr)[2] = (carr2)[2]
59
60 #define BSplCLib_DataContainer BSplCLib_DataContainer_3d
61   
62 #include <BSplCLib_CurveComputation.gxx>