Skip to content
Snippets Groups Projects
Commit fb6b4fbc authored by JM's avatar JM
Browse files

merge

parent 426c5804
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ bool draw_field_line(struct gfx_context_t *ctxt, charge_t *charges, int num_char ...@@ -44,7 +44,7 @@ bool draw_field_line(struct gfx_context_t *ctxt, charge_t *charges, int num_char
vec2 pos_sum; vec2 pos_sum;
for (int i = 0; i < num_charges; i++) for (int i = 0; i < num_charges; i++)
{ {
// compute_e(charges[i], ..., &pos_sum); //compute_e(charges[i], ..., &pos_sum);
} }
//vec2 pos_next = //vec2 pos_next =
......
...@@ -18,10 +18,10 @@ int main() { ...@@ -18,10 +18,10 @@ int main() {
draw_charges(ctxt, charges, NCHARGES, 0.0, 1.0, 0.0, 1.0); draw_charges(ctxt, charges, NCHARGES, 0.0, 1.0, 0.0, 1.0);
//for (int i = 0; i < NPOINTS; ++i) { for (int i = 0; i < NPOINTS; ++i) {
// vec2 start = vec2_normalize(vec2_create(rand(), rand())); vec2 start = vec2_normalize(vec2_create(rand(), rand()));
// draw_field_line(ctxt, charges, NCHARGES, DX, start, 0.0, 1.0, 0.0, 1.0); draw_field_line(ctxt, charges, NCHARGES, DX, start, 0.0, 1.0, 0.0, 1.0);
//} }
while (gfx_keypressed() != SDLK_ESCAPE) gfx_present(ctxt); while (gfx_keypressed() != SDLK_ESCAPE) gfx_present(ctxt);
gfx_destroy(ctxt); gfx_destroy(ctxt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment