1 -- Created on: 1993-03-24
2 -- Created by: Philippe DAUTRY
3 -- Copyright (c) 1993-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.
24 class CartesianPoint from Geom2d inherits Point from Geom2d
26 --- Purpose : Describes a point in 2D space. A
27 -- Geom2d_CartesianPoint is defined by a gp_Pnt2d
28 -- point, with its two Cartesian coordinates X and Y.
40 Create (P : Pnt2d) returns mutable CartesianPoint;
41 --- Purpose : Returns a persistent copy of P.
44 Create (X, Y : Real) returns mutable CartesianPoint;
48 SetCoord (me : mutable; X, Y : Real);
49 --- Purpose : Set <me> to X, Y coordinates.
52 SetPnt2d (me : mutable; P : Pnt2d);
53 --- Purpose : Set <me> to P.X(), P.Y() coordinates.
56 SetX (me : mutable; X : Real);
57 --- Purpose : Changes the X coordinate of me.
60 SetY (me : mutable; Y : Real);
61 --- Purpose : Changes the Y coordinate of me.
64 Coord (me; X, Y : out Real);
65 --- Purpose : Returns the coordinates of <me>.
68 Pnt2d (me) returns Pnt2d;
70 -- Returns a non persistent cartesian point with
71 -- the same coordinates as <me>.
72 -- -C++: return const&
76 --- Purpose : Returns the X coordinate of <me>.
80 --- Purpose : Returns the Y coordinate of <me>.
84 Transform (me : mutable; T : Trsf2d);
88 Copy (me) returns mutable like me;