Integration of OCCT 6.5.0 from SVN
[occt.git] / src / gce / gce_MakeTranslation2d.cdl
CommitLineData
7fd59977 1-- File: Translation2d.cdl
2-- Created: Wed Aug 26 14:32:08 1992
3-- Author: Remi GILET
4-- <reg@topsn3>
5---Copyright: Matra Datavision 1992
6
7class MakeTranslation2d
8
9from gce
10
11 ---Purpose: This class implements elementary construction algorithms for a
12 -- translation in 2D space. The result is a gp_Trsf2d transformation.
13 -- A MakeTranslation2d object provides a framework for:
14 -- - defining the construction of the transformation,
15 -- - implementing the construction algorithm, and
16 -- - consulting the result.
17
18uses Pnt2d from gp,
19 Trsf2d from gp,
20 Vec2d from gp,
21 Real from Standard
22
23is
24
25Create(Vect : Vec2d from gp) returns MakeTranslation2d;
26 ---Purpose: Constructs a translation along the vector Vect.
27
28Create(Point1 : Pnt2d from gp;
29 Point2 : Pnt2d from gp) returns MakeTranslation2d;
30 --- Purpose: Constructs a translation along the vector
31 --- (Point1,Point2) defined from the point Point1 to the point Point2.
32
33Value(me) returns Trsf2d from gp
34 is static;
35 ---C++: return const&
36 ---Purpose: Returns the constructed transformation.
37
38Operator(me) returns Trsf2d from gp
39 is static;
40 ---C++: return const&
41 ---C++: alias "Standard_EXPORT operator gp_Trsf2d() const;"
42
43fields
44
45 TheTranslation2d : Trsf2d from gp;
46
47end MakeTranslation2d;
48