summaryrefslogtreecommitdiff
path: root/inc/Blend_Point.lxx
blob: 30fac94908f4332ad94717f96d7cda11b4ce832e (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#include <Standard_DomainError.hxx>
#include <gp_Vec2d.hxx>

inline const gp_Pnt& Blend_Point::PointOnS1 () const
{
  return pt1;
}

inline const gp_Pnt& Blend_Point::PointOnS2 () const
{
  return pt2;
}

inline Standard_Real Blend_Point::Parameter () const
{
  return prm;
}

inline void Blend_Point::ParametersOnS1 (Standard_Real& U1,
					 Standard_Real& V1) const
{
  if (!hass1) {Standard_DomainError::Raise();}
  U1 = u1;
  V1 = v1;
}

inline void Blend_Point::ParametersOnS2 (Standard_Real& U2,
					 Standard_Real& V2) const
{
  if (!hass2) {Standard_DomainError::Raise();}
  U2 = u2;
  V2 = v2;
}

inline Standard_Boolean Blend_Point::IsTangencyPoint () const
{
  return istgt;
}


inline const gp_Vec& Blend_Point::TangentOnS1 () const
{
  if (istgt) {Standard_DomainError::Raise();}
  return tg1;
}

inline const gp_Vec& Blend_Point::TangentOnS2 () const
{
  if (istgt) {Standard_DomainError::Raise();}
  return tg2;
}

inline gp_Vec2d Blend_Point::Tangent2dOnS1 () const
{
  if (istgt || !hass1) {Standard_DomainError::Raise();}
  return gp_Vec2d(utg12d,vtg12d);
}

inline gp_Vec2d Blend_Point::Tangent2dOnS2 () const
{
  if (istgt || !hass2) {Standard_DomainError::Raise();}
  return gp_Vec2d(utg22d,vtg22d);
}

inline const gp_Pnt& Blend_Point::PointOnS () const
{
  return pt1;
}

inline const gp_Pnt& Blend_Point::PointOnC () const
{
  return pt2;
}

inline void Blend_Point::ParametersOnS (Standard_Real& U1,
					Standard_Real& V1) const
{
  if (!hass1) {Standard_DomainError::Raise();}
  U1 = u1;
  V1 = v1;
}

inline Standard_Real Blend_Point::ParameterOnC () const
{
  if (!hasc2) {Standard_DomainError::Raise();}
  return pc2;
}

inline const gp_Vec& Blend_Point::TangentOnS () const
{
  if (istgt || !hass1) {Standard_DomainError::Raise();}
  return tg1;
}

inline const gp_Vec& Blend_Point::TangentOnC () const
{
  if (istgt) {Standard_DomainError::Raise();}
  return tg2;
}

inline gp_Vec2d Blend_Point::Tangent2d () const
{
  if (istgt || !hass1) {Standard_DomainError::Raise();}
  return gp_Vec2d(utg12d,vtg12d);
}


inline const gp_Pnt& Blend_Point::PointOnC1 () const
{
  return pt1;
}

inline const gp_Pnt& Blend_Point::PointOnC2 () const
{
  return pt2;
}

inline Standard_Real Blend_Point::ParameterOnC1 () const
{
  if (!hasc1) {Standard_DomainError::Raise();}
  return pc1;
}

inline Standard_Real Blend_Point::ParameterOnC2 () const
{
  if (!hasc2) {Standard_DomainError::Raise();}
  return pc2;
}

inline const gp_Vec& Blend_Point::TangentOnC1 () const
{
  if (istgt || !hass1) {Standard_DomainError::Raise();}
  return tg1;
}

inline const gp_Vec& Blend_Point::TangentOnC2 () const
{
  if (istgt) {Standard_DomainError::Raise();}
  return tg2;
}