1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/src/Contap/Contap_ArcFunction.lxx

45 lines
920 B
Plaintext
Executable File

// File: Contap_ArcFunction.lxx
// Created: Thu Jun 3 12:32:05 1993
// Author: Jacques GOUSSARD
// Copyright: OPEN CASCADE 2000
inline void Contap_ArcFunction::Set(const gp_Dir& Direction,
const Standard_Real Angle)
{
myType = Contap_DraftStd;
myDir = Direction;
myCosAng = Cos(PI/2.+Angle);
}
inline void Contap_ArcFunction::Set(const gp_Pnt& Eye,
const Standard_Real Angle)
{
myType = Contap_DraftPrs;
myEye = Eye;
myCosAng = Cos(PI/2.+Angle);
}
inline void Contap_ArcFunction::Set(const gp_Dir& Direction)
{
myType = Contap_ContourStd;
myDir = Direction;
}
inline void Contap_ArcFunction::Set(const gp_Pnt& Eye)
{
myType = Contap_ContourPrs;
myEye = Eye;
}
inline void Contap_ArcFunction::Set(const TheArc& A)
{
myArc = A;
seqpt.Clear();
}
inline const gp_Pnt& Contap_ArcFunction::Valpoint
(const Standard_Integer Index) const
{
return seqpt(Index);
}