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

Function calc_sq_distance

renderers/agg/include/agg_math.h:65–70  ·  view source on GitHub ↗

--------------------------------------------------------calc_sq_distance

Source from the content-addressed store, hash-verified

63
64 //--------------------------------------------------------calc_sq_distance
65 AGG_INLINE double calc_sq_distance(double x1, double y1, double x2, double y2)
66 {
67 double dx = x2-x1;
68 double dy = y2-y1;
69 return dx * dx + dy * dy;
70 }
71
72 //------------------------------------------------calc_line_point_distance
73 AGG_INLINE double calc_line_point_distance(double x1, double y1,

Callers 2

recursive_bezierMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected