Function necsim::calculateDistance

Function Documentation

double necsim::calculateDistance(const double &start_x, const double &start_y, const double &end_x, const double &end_y)

Calculates the distance between two points.

Return
the distance between the points
Parameters
  • start_x: the start x coordinate
  • start_y: the start y coordinate
  • end_x: the end x coordinate
  • end_y: the end y coodinate