1 -- Created on: 1992-04-03
2 -- Created by: Laurent BUCHARD
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 class IntersectionPoint from IntRes2d
25 ---Purpose: Definition of an intersection point between two
29 inherits Storable from Standard
32 Transition from IntRes2d
37 ---Purpose: Empty constructor.
39 returns IntersectionPoint from IntRes2d;
42 Create(P: Pnt2d from gp; Uc1,Uc2:Real from Standard;
43 Trans1,Trans2: Transition from IntRes2d;
44 ReversedFlag: Boolean from Standard)
46 ---Purpose: Creates an IntersectionPoint.
47 -- if ReversedFlag is False, the parameter Uc1(resp. Uc2)
48 -- and the Transition Trans1 (resp. Trans2) refer to
49 -- the first curve (resp. second curve) otherwise Uc1
50 -- and Trans1 (resp. Uc2 and Trans2) refer to the
51 -- second curve (resp. the first curve).
55 returns IntersectionPoint from IntRes2d;
58 SetValues(me:in out; P: Pnt2d from gp; Uc1,Uc2:Real from Standard;
59 Trans1,Trans2: Transition from IntRes2d;
60 ReversedFlag: Boolean from Standard)
62 ---Purpose: Sets the values for an existing intersection
63 -- point. The meaning of the parameters are the same
74 ---Purpose: Returns the value of the coordinates of the
75 -- intersection point in the 2D space.
78 ---C++: return const &
86 ---Purpose: Returns the parameter on the first curve.
90 returns Real from Standard
96 ---Purpose: Returns the parameter on the second curve.
100 returns Real from Standard
104 TransitionOfFirst(me)
106 ---Purpose: Returns the transition of the 1st curve compared to
110 ---C++: return const &
111 returns Transition from IntRes2d
115 TransitionOfSecond(me)
117 ---Purpose: returns the transition of the 2nd curve compared to
121 ---C++: return const &
122 returns Transition from IntRes2d
129 p1 : Real from Standard;
130 p2 : Real from Standard;
131 trans1 : Transition from IntRes2d;
132 trans2 : Transition from IntRes2d;
134 end IntersectionPoint;