1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-30 13:05:50 +03:00
occt/src/Geom/Geom_Point.cxx
2012-03-05 19:23:40 +04:00

30 lines
605 B
C++
Executable File

// 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);
}