summaryrefslogtreecommitdiff
path: root/inc/IntStart_Segment.lxx
blob: ce8f5c3f33ca8b8c8faec67dc613ad2f2e320b19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <Standard_DomainError.hxx>


inline void IntStart_Segment::SetValue (const TheArc& A) {

  hasfp = Standard_False;
  haslp = Standard_False;
  arc = A;
}


inline const TheArc& IntStart_Segment::Curve () const {

  return arc;
}


inline Standard_Boolean IntStart_Segment::HasFirstPoint () const {

  return hasfp;
}


inline const ThePathPoint& IntStart_Segment::FirstPoint () const {

  if (!hasfp) { Standard_DomainError::Raise(); }
  return thefp;
}


inline Standard_Boolean IntStart_Segment::HasLastPoint () const {

  return haslp;
}


inline const ThePathPoint& IntStart_Segment::LastPoint () const {

  if (!haslp) { Standard_DomainError::Raise(); }
  return thelp;
}