MCPcopy Create free account
hub / github.com/MapServer/MapServer / calc_distance

Function calc_distance

renderers/agg/include/agg_math.h:57–62  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

55
56 //-----------------------------------------------------------calc_distance
57 AGG_INLINE double calc_distance(double x1, double y1, double x2, double y2)
58 {
59 double dx = x2-x1;
60 double dy = y2-y1;
61 return sqrt(dx * dx + dy * dy);
62 }
63
64 //--------------------------------------------------------calc_sq_distance
65 AGG_INLINE double calc_sq_distance(double x1, double y1, double x2, double y2)

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