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

Function calc_orthogonal

renderers/agg/include/agg_math.h:177–187  ·  view source on GitHub ↗

--------------------------------------------------------calc_orthogonal

Source from the content-addressed store, hash-verified

175
176 //--------------------------------------------------------calc_orthogonal
177 AGG_INLINE void calc_orthogonal(double thickness,
178 double x1, double y1,
179 double x2, double y2,
180 double* x, double* y)
181 {
182 double dx = x2 - x1;
183 double dy = y2 - y1;
184 double d = sqrt(dx*dx + dy*dy);
185 *x = thickness * dy / d;
186 *y = -thickness * dx / d;
187 }
188
189 //--------------------------------------------------------dilate_triangle
190 AGG_INLINE void dilate_triangle(double x1, double y1,

Callers 1

dilate_triangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected