MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / distance

Function distance

source/matplot/util/common.cpp:1251–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1249 }
1250
1251 double distance(double x1, double y1, double x2, double y2) {
1252 return sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
1253 }
1254
1255} // namespace matplot

Callers 10

quiverMethod · 0.85
quiver3Method · 0.85
contours.cppFile · 0.85
greedy_tsp_with_idxFunction · 0.85
greedy_tspFunction · 0.85
to_vector_2dFunction · 0.85
to_vector_3dFunction · 0.85
mainFunction · 0.85
tour_distanceMethod · 0.85
tour_distanceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected