Function get_distance(const double2&, const double2&)

Function Documentation

double get_distance(const double2 &A, const double2 &B)

Calculates the Euclidean distance between two points in a 2D space lattice.

Parameters:
  • A -- The coordinates of the first point.

  • B -- The coordinates of the second point.

Returns:

The Euclidean distance between the two points.