2 -- Copyright (c) 1993-1999 Matra Datavision
3 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
22 class Vertex from Graphic2d
26 ---Purpose: This class allows the creation and update of a
29 ---Keywords: Vertex, Coordinate, Point
34 Drawer from Graphic2d,
38 -------------------------
39 -- Category: Constructors
40 -------------------------
43 returns Vertex from Graphic2d;
45 ---Purpose: Creates a point with 0.0, 0.0 coordinates.
47 Create (AX, AY: Real from Standard)
48 returns Vertex from Graphic2d;
50 ---Purpose: Creates a point with <AX>, <AY> coordinates.
52 Create (AX, AY: ShortReal from Standard)
53 returns Vertex from Graphic2d;
55 ---Purpose: Creates a point with <AX>, <AY> coordinates.
57 ---------------------------------------------------
58 -- Category: Methods to modify the class definition
59 ---------------------------------------------------
62 Xnew, Ynew: Length from Quantity)
65 ---Purpose: Modifies the coordinates of the point <me>.
66 ---Category: Methods to modify the class definition
68 SetXCoord (me: in out;
69 Xnew: Length from Quantity)
72 ---Purpose: Modifies the X coordinate of the point <me>.
73 ---Category: Methods to modify the class definition
75 SetYCoord (me: in out;
76 Ynew: Length from Quantity)
79 ---Purpose: Modifies the Y coordinate of the point <me>.
80 ---Category: Methods to modify the class definition
82 ----------------------------
83 -- Category: Inquire methods
84 ----------------------------
87 AX, AY: out Length from Quantity)
90 ---Purpose: Returns the coordinates of the point <me>.
91 ---Category: Inquire methods
93 X (me) returns Length from Quantity
96 ---Purpose: Returns the X coordinates of the point <me>.
97 ---Category: Inquire methods
99 Y (me) returns Length from Quantity
102 ---Purpose: Returns the Y coordinate of the point <me>.
103 ---Category: Inquire methods
105 IsEqual (me ; other : Vertex) returns Boolean
108 ---Purpose: Test if <me> and <other> are the the same vertex.
109 ---C++: alias operator ==
111 --------------------------
112 -- Category: Class methods
113 --------------------------
116 AV1, AV2: Vertex from Graphic2d)
117 returns Length from Quantity;
119 ---Purpose: Returns the distance between <AV1> and <AV2>.
120 ---Category: Class methods
123 myX: ShortReal from Standard;
124 myY: ShortReal from Standard;
126 end Vertex from Graphic2d;