1 -- File: Geom2d_CartesianPoint.cdl
2 -- Created: Wed Mar 24 17:56:19 1993
3 -- Author: Philippe DAUTRY
5 -- Copyright: Matra Datavision 1993
7 ---Copyright: Matra Datavision 1991
10 class CartesianPoint from Geom2d inherits Point from Geom2d
12 --- Purpose : Describes a point in 2D space. A
13 -- Geom2d_CartesianPoint is defined by a gp_Pnt2d
14 -- point, with its two Cartesian coordinates X and Y.
26 Create (P : Pnt2d) returns mutable CartesianPoint;
27 --- Purpose : Returns a persistent copy of P.
30 Create (X, Y : Real) returns mutable CartesianPoint;
34 SetCoord (me : mutable; X, Y : Real);
35 --- Purpose : Set <me> to X, Y coordinates.
38 SetPnt2d (me : mutable; P : Pnt2d);
39 --- Purpose : Set <me> to P.X(), P.Y() coordinates.
42 SetX (me : mutable; X : Real);
43 --- Purpose : Changes the X coordinate of me.
46 SetY (me : mutable; Y : Real);
47 --- Purpose : Changes the Y coordinate of me.
50 Coord (me; X, Y : out Real);
51 --- Purpose : Returns the coordinates of <me>.
54 Pnt2d (me) returns Pnt2d;
56 -- Returns a non persistent cartesian point with
57 -- the same coordinates as <me>.
58 -- -C++: return const&
62 --- Purpose : Returns the X coordinate of <me>.
66 --- Purpose : Returns the Y coordinate of <me>.
70 Transform (me : mutable; T : Trsf2d);
74 Copy (me) returns mutable like me;