0022939: Make B-Spline internal cache thread-safe to be used in multy-threaded mode
[occt.git] / src / Geom2d / Geom2d_Point.cdl
CommitLineData
b311480e 1-- Created on: 1993-03-24
2-- Created by: JCV
3-- Copyright (c) 1993-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
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.
10--
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.
13--
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.
20
7fd59977 21
7fd59977 22
23
24deferred class Point from Geom2d inherits Geometry from Geom2d
25
26 --- Purpose : The abstract class Point describes the common
27 -- behavior of geometric points in 2D space.
28 -- The Geom2d package also provides the concrete
29 -- class Geom2d_CartesianPoint.
30
31uses Pnt2d from gp
32
33is
34
35
36 Coord (me; X, Y : out Real)
37 --- Purpose : returns the Coordinates of <me>.
38 is deferred;
39
40
41 Pnt2d (me) returns Pnt2d
42 --- Purpose : returns a non persistent copy of <me>
43 is deferred;
44
45
46 X (me) returns Real
47 --- Purpose : returns the X coordinate of <me>.
48 is deferred;
49
50
51 Y (me) returns Real
52 --- Purpose : returns the Y coordinate of <me>.
53 is deferred;
54
55
56
57 Distance (me; Other : Point) returns Real;
58 --- Purpose : computes the distance between <me> and <Other>.
59
60
61 SquareDistance (me; Other : Point) returns Real;
62 --- Purpose : computes the square distance between <me> and <Other>.
63
64end;
65