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

Method vertex

dep/agg/include/agg_conv_gpc.h:377–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375 //------------------------------------------------------------------------
376 template <class VSA, class VSB>
377 unsigned conv_gpc<VSA, VSB>::vertex(double* x, double* y)
378 {
379 if (m_status == status_move_to)
380 {
381 if (next_contour())
382 {
383 if (next_vertex(x, y))
384 {
385 m_status = status_line_to;
386 return path_cmd_move_to;
387 }
388 m_status = status_stop;
389 return path_cmd_end_poly | path_flags_close;
390 }
391 }
392 else
393 {
394 if (next_vertex(x, y))
395 {
396 return path_cmd_line_to;
397 }
398 else
399 {
400 m_status = status_move_to;
401 }
402 return path_cmd_end_poly | path_flags_close;
403 }
404 return path_cmd_stop;
405 }
406
407}
408

Callers 1

addMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected