trename slider print function - slidergrid - grid of elastic sliders on a frictional surface
(HTM) git clone git://src.adamsgaard.dk/slidergrid
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d7ec81af4ae23fc6bc3614beb3f2f80dab6320af
(DIR) parent 7739942276ce93116bd16a11f27a7be34b544713
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 15 Mar 2016 12:53:55 -0700
rename slider print function
Diffstat:
M main.c | 8 +++++++-
M slider.c | 2 +-
M slider.h | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/main.c b/main.c
t@@ -6,7 +6,13 @@
int main(int argc, char** argv)
{
- slider* sliders = create_regular_slider_grid(4, 4, 4, 1.0, 1.0, 1.0);
+ int nx = 4;
+ int ny = 4;
+ int nz = 4;
+ slider* sliders = create_regular_slider_grid(nx, ny, nz, 1.0, 1.0, 1.0);
+
+
+ print_slider_position(0);
free(sliders);
return EXIT_SUCCESS;
(DIR) diff --git a/slider.c b/slider.c
t@@ -1,7 +1,7 @@
#include <stdio.h>
#include "slider.h"
-void print_position(slider s)
+void print_slider_position(slider s)
{
printf("%f\t%f\t%f\n", s.pos.x, s.pos.y, s.pos.z);
};
(DIR) diff --git a/slider.h b/slider.h
t@@ -10,6 +10,6 @@ typedef struct {
} slider;
-void print_position(slider s);
+void print_slider_position(slider s);
#endif