bpp-core3  3.0.0
bpp::CoordsTools Class Reference

Some functions to deal with Point2D. More...

#include <Bpp/Graphics/Point2DTools.h>

Static Public Member Functions

template<class T >
static double getDistanceBetween (const Point2D< T > &co1, const Point2D< T > &co2)
 Get the distance between two Coord objects. More...
 

Detailed Description

Some functions to deal with Point2D.

Author
Sylvain Gaillard

Definition at line 56 of file Point2DTools.h.

Member Function Documentation

◆ getDistanceBetween()

template<class T >
static double bpp::CoordsTools::getDistanceBetween ( const Point2D< T > &  co1,
const Point2D< T > &  co2 
)
inlinestatic

Get the distance between two Coord objects.

Parameters
co1A Point2D object.
co2An other Point2D object.
Returns
the distance between the 2 points as a double

Definition at line 66 of file Point2DTools.h.

References bpp::Point2D< T >::getX(), and bpp::Point2D< T >::getY().


The documentation for this class was generated from the following file: