0024624: Lost word in license statement in source files
[occt.git] / src / gce / gce_MakeLin.cdl
CommitLineData
b311480e 1-- Created on: 1992-08-26
2-- Created by: Remi GILET
3-- Copyright (c) 1992-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class MakeLin from gce inherits Root from gce
18
19 ---Purpose : This class implements the following algorithms used
20 -- to create a Lin from gp.
21 -- * Create a Lin parallel to another and passing
22 -- through a point.
23 -- * Create a Lin passing through 2 points.
24 -- * Create a lin from its axis (Ax1 from gp).
25 -- * Create a lin from a point and a direction.
26
27uses Pnt from gp,
28 Lin from gp,
29 Ax1 from gp,
30 Dir from gp,
31 Real from Standard
32
33raises NotDone from StdFail
34
35is
36
37Create (A1 : Ax1 from gp) returns MakeLin;
38 --- Purpose : Creates a line located along the axis A1.
39
40
41Create (P : Pnt from gp;
42 V : Dir from gp) returns MakeLin;
43 --- Purpose :
44 -- <P> is the location point (origin) of the line and
45 -- <V> is the direction of the line.
46
47Create(Lin : Lin from gp;
48 Point : Pnt from gp) returns MakeLin;
49 ---Purpose : Make a Lin from gp <TheLin> parallel to another
50 -- Lin <Lin> and passing through a Pnt <Point>.
51
52Create(P1 : Pnt from gp;
53 P2 : Pnt from gp) returns MakeLin;
54 ---Purpose : Make a Lin from gp <TheLin> passing through 2
55 -- Pnt <P1>,<P2>.
56 -- It returns false if <p1> and <P2> are confused.
57
58Value(me) returns Lin from gp
59 raises NotDone
60 is static;
61 ---C++: return const&
62 --- Purpose: Returns the constructed line.
63 -- Exceptions StdFail_NotDone is raised if no line is constructed.
64
65Operator(me) returns Lin from gp
66 is static;
67 ---C++: return const&
68 ---C++: alias "Standard_EXPORT operator gp_Lin() const;"
69
70fields
71
72 TheLin : Lin from gp;
73 --The solution from gp.
74
75end MakeLin;