Introduction
Introduction Statistics Contact Development Disclaimer Help
trename slider print function - slidergrid - grid of elastic sliders on a frict…
git clone git://src.adamsgaard.dk/slidergrid
Log
Files
Refs
README
LICENSE
---
commit d7ec81af4ae23fc6bc3614beb3f2f80dab6320af
parent 7739942276ce93116bd16a11f27a7be34b544713
Author: Anders Damsgaard <[email protected]>
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(-)
---
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;
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);
};
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
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.