0022792: Globally defined symbol PI conflicts with VTK definition (Intel compiler)
[occt.git] / src / Contap / Contap_ArcFunction.lxx
CommitLineData
733a0e55
S
1// File: Contap_ArcFunction.lxx
2// Created: Thu Jun 3 12:32:05 1993
3// Author: Jacques GOUSSARD
4// Copyright: OPEN CASCADE 2000
5
7fd59977 6inline void Contap_ArcFunction::Set(const gp_Dir& Direction,
7 const Standard_Real Angle)
8{
9 myType = Contap_DraftStd;
10 myDir = Direction;
c6541a0c 11 myCosAng = Cos(M_PI/2.+Angle);
7fd59977 12}
13
14inline void Contap_ArcFunction::Set(const gp_Pnt& Eye,
15 const Standard_Real Angle)
16{
17 myType = Contap_DraftPrs;
18 myEye = Eye;
c6541a0c 19 myCosAng = Cos(M_PI/2.+Angle);
7fd59977 20}
21
22inline void Contap_ArcFunction::Set(const gp_Dir& Direction)
23{
24 myType = Contap_ContourStd;
25 myDir = Direction;
26}
27
28inline void Contap_ArcFunction::Set(const gp_Pnt& Eye)
29{
30 myType = Contap_ContourPrs;
31 myEye = Eye;
32}
33
34inline void Contap_ArcFunction::Set(const TheArc& A)
35{
36 myArc = A;
37 seqpt.Clear();
38}
39
40inline const gp_Pnt& Contap_ArcFunction::Valpoint
41 (const Standard_Integer Index) const
42{
43 return seqpt(Index);
44}