7fd59977 |
1 | // File: Geom_Point.cxx |
2 | // Created: Wed Mar 10 10:02:09 1993 |
3 | // Author: JCV |
4 | // <fid@phylox> |
5 | // Copyright: Matra Datavision 1993 |
6 | |
7 | //File Geom_Point.cxx, JCV 15/01/91 |
8 | |
9 | #include <Geom_Point.ixx> |
10 | |
11 | |
12 | typedef Handle(Geom_Point) Handle(Point); |
13 | typedef Geom_Point Point; |
14 | |
15 | |
16 | Standard_Real Geom_Point::Distance (const Handle(Point)& Other) const { |
17 | |
18 | gp_Pnt P1 = this->Pnt (); |
19 | gp_Pnt P2 = Other->Pnt (); |
20 | return P1.Distance (P2); |
21 | } |
22 | |
23 | |
24 | Standard_Real Geom_Point::SquareDistance (const Handle(Point)& Other) const { |
25 | |
26 | gp_Pnt P1 = this->Pnt (); |
27 | gp_Pnt P2 = Other->Pnt (); |
28 | return P1.SquareDistance (P2); |
29 | } |