libsbml-draw
dist.h
Go to the documentation of this file.
1 /* MIT License
2  */
3 
4 //== FILEDOC =========================================================================
5 
10 //== BEGINNING OF CODE ===============================================================
11 
12 #ifndef __SBNW_MATH_DIST_H_
13 #define __SBNW_MATH_DIST_H_
14 
15 //== INCLUDES ========================================================================
16 
17 #include "SagittariusCore.h"
18 #include "point.h"
19 
20 //-- C++ code --
21 #ifdef __cplusplus
22 
23 namespace LibsbmlDraw {
24 
26  inline Real euclidean2d(const Point& x, const Point& y) {
27  Point d = x - y;
28  return sqrt(d.x*d.x + d.y*d.y);
29  }
30 
31 }
32 
33 #endif
34 
35 #endif
SAGITTARIUS_REAL Real
Make Real visible to C. Consider letting Real lie in top namespace.
Definition: SagittariusCommon.h:112
First file included.