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