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

Function calc_orthogonal

dep/agg/include/agg_math.h:192–205  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

190
191 //--------------------------------------------------------calc_orthogonal
192 AGG_INLINE void calc_orthogonal(double thickness,
193 double x1,
194 double y1,
195 double x2,
196 double y2,
197 double* x,
198 double* y)
199 {
200 double dx = x2 - x1;
201 double dy = y2 - y1;
202 double d = std::sqrt(dx * dx + dy * dy);
203 *x = thickness * dy / d;
204 *y = -thickness * dx / d;
205 }
206
207 //--------------------------------------------------------dilate_triangle
208 AGG_INLINE void dilate_triangle(double x1,

Callers 1

dilate_triangleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected