MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / calc_distance

Function calc_distance

dep/agg/include/agg_math.h:60–65  ·  view source on GitHub ↗

-----------------------------------------------------------calc_distance

Source from the content-addressed store, hash-verified

58
59 //-----------------------------------------------------------calc_distance
60 AGG_INLINE double calc_distance(double x1, double y1, double x2, double y2)
61 {
62 double dx = x2 - x1;
63 double dy = y2 - y1;
64 return std::sqrt(dx * dx + dy * dy);
65 }
66
67 //--------------------------------------------------------calc_sq_distance
68 AGG_INLINE double calc_sq_distance(

Callers 11

line0Method · 0.85
line1Method · 0.85
line2Method · 0.85
line3Method · 0.85
line3Method · 0.85
operator()Method · 0.85
path_lengthFunction · 0.85
calc_miterMethod · 0.85
calc_line_point_distanceFunction · 0.85
join_pathMethod · 0.85
arc_toMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected