Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: CubeObj.h
- Revision:
- 0:96a4e9c69d57
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CubeObj.h Sun Jan 29 02:15:35 2017 +0000
@@ -0,0 +1,27 @@
+#pragma once
+
+#include<math.h>
+#include"LEDCUBE_RGB_888.h"
+
+#define PI 3.1415926535
+
+class CubeObj{
+public:
+ float x, y, z;
+ float gz;
+ float ang[2], sp;
+ int life;
+ COL c;
+ CubeObj();
+ CubeObj(int sx, int sy, int sz, COL sc);
+ void set(int sx, int sy, int sz, COL sc);
+ void set(double ang1, double ang2, double s);
+ void go();
+ void go(int tx, int ty, int tz, double s);
+ void go(double ang1, double ang2, double s);
+ void friction(double stp);
+ void gravity(double stp);
+ void leave(int tx, int ty, int tz, double s);
+ void move(int gx, int gy, int gz);
+ void draw();
+};
\ No newline at end of file