summaryrefslogtreecommitdiff
path: root/src/Geom2d/Geom2d_Point.cxx
blob: c2415e22e4e340a40af43063f69c09af48f8ef18 (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
// File:	Geom2d_Point.cxx
// Created:	Wed Mar 24 19:27:37 1993
// Author:	Philippe DAUTRY
//		<fid@sdsun2>
// Copyright:	Matra Datavision 1993

//File Geom2d_Point.cxx, JCV 23/06/91

#include <Geom2d_Point.ixx>

typedef Geom2d_Point Point;
typedef Handle(Geom2d_Point) Handle(Point);


Standard_Real Geom2d_Point::Distance (const Handle(Point)& Other) const {

  gp_Pnt2d P1 = this-> Pnt2d ();
  gp_Pnt2d P2 = Other->Pnt2d ();
  return P1.Distance (P2);
}


Standard_Real Geom2d_Point::SquareDistance (const Handle(Point)& Other) const {

  gp_Pnt2d P1 = this-> Pnt2d ();
  gp_Pnt2d P2 = Other->Pnt2d ();
  return P1.SquareDistance (P2);
}