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

Method vertex

dep/agg/include/agg_path_storage_integer.h:50–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 }
49
50 unsigned vertex(double* x_,
51 double* y_,
52 double dx = 0,
53 double dy = 0,
54 double scale = 1.0) const
55 {
56 *x_ = dx + (double(x >> 1) / coord_scale) * scale;
57 *y_ = dy + (double(y >> 1) / coord_scale) * scale;
58 switch (((y & 1) << 1) | (x & 1))
59 {
60 case cmd_move_to:
61 return path_cmd_move_to;
62 case cmd_line_to:
63 return path_cmd_line_to;
64 case cmd_curve3:
65 return path_cmd_curve3;
66 case cmd_curve4:
67 return path_cmd_curve4;
68 }
69 return path_cmd_stop;
70 }
71 };
72
73 //---------------------------------------------------path_storage_integer

Callers 3

vertexMethod · 0.45
bounding_rectMethod · 0.45
vertexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected