1 -- File: MeshAlgo_PntComparator.cdl
2 -- Created: Fri Jun 18 13:46:14 1993
3 -- Author: Didier PIFFAULT
5 ---Copyright: Matra Datavision 1993
8 generic class PntComparator from MeshAlgo (Point as any; Direction as any)
10 ---Purpose: Sort two point in a given direction.
13 uses Boolean from Standard
16 is Create (theDir : Direction; TheTol: Real from Standard)
17 returns PntComparator;
20 IsLower (me; Left, Right: Point)
21 ---Purpose: returns True if <Left> is lower than <Right>
22 returns Boolean from Standard;
24 IsGreater (me; Left, Right: Point)
25 ---Purpose: returns True if <Left> is greater than <Right>
26 returns Boolean from Standard;
28 IsEqual(me; Left, Right: Point)
29 ---Purpose: returns True when <Right> and <Left> are equal.
30 returns Boolean from Standard;
33 fields DirectionOfSort : Direction;
34 Tolerance : Real from Standard;