just a test

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Revision:
30:d8af03f01cd4
Parent:
12:0de9cd2bced5
Child:
32:52273c3291fe
--- a/classRigidScafold.cpp	Wed Jun 20 03:25:49 2012 +0000
+++ b/classRigidScafold.cpp	Fri Sep 21 10:02:35 2012 +0000
@@ -1,31 +1,31 @@
-#include "classRigidScafold.h"
- 
- RigidScafold::RigidScafold() {
- }
- 
- RigidScafold::~RigidScafold() {
- }
- 
-
- void  RigidScafold::buildCircularScafold(float _radius, vector2Dd _pos, int _numScafoldPoints) {
-    scafold.resize(_numScafoldPoints);
-    float angInc= 2.0 * PI / _numScafoldPoints;
-    float ang=0;
-    for (int i = 0; i < scafold.size(); i++) {
-        scafold[i]= vector2Dd( cos(ang)* _radius, sin(ang)* _radius )   + _pos; // note: I cannot do vector2Dd( cos(ang), sin(ang) ) * _radius because vector2Dd would give (0,0)
-        ang+=angInc;
-    }
-}
-  
- void  RigidScafold::buildLine(float _length, float _angleDeg, vector2Dd _pos, int _numScafoldPoints) {
-   scafold.resize(_numScafoldPoints);
-   vector2Dd auxStep = vector2Dd(_length * cos(_angleDeg/180.0 * PI)/_numScafoldPoints, sin(_length * _angleDeg/180.0 * PI)/_numScafoldPoints ) ;
-    for (int i = 0; i < scafold.size(); i++) {
-        scafold[i]= auxStep * i + _pos;
-    }
-}
-
-  // Other functions to create letters, text, etc. 
-  // ... TO DO ....
-  
+#include "classRigidScafold.h"
+ 
+ RigidScafold::RigidScafold() {
+ }
+ 
+ RigidScafold::~RigidScafold() {
+ }
+ 
+
+ void  RigidScafold::buildCircularScafold(float _radius, vector2Dd _pos, int _numScafoldPoints) {
+    scafold.resize(_numScafoldPoints);
+    float angInc= 2.0 * PI / _numScafoldPoints;
+    float ang=0;
+    for (int i = 0; i < scafold.size(); i++) {
+        scafold[i]= vector2Dd( cos(ang)* _radius, sin(ang)* _radius )   + _pos; // note: I cannot do vector2Dd( cos(ang), sin(ang) ) * _radius because vector2Dd would give (0,0)
+        ang+=angInc;
+    }
+}
+  
+ void  RigidScafold::buildLine(float _length, float _angleDeg, vector2Dd _pos, int _numScafoldPoints) {
+   scafold.resize(_numScafoldPoints);
+   vector2Dd auxStep = vector2Dd(_length * cos(_angleDeg/180.0 * PI)/_numScafoldPoints, sin(_length * _angleDeg/180.0 * PI)/_numScafoldPoints ) ;
+    for (int i = 0; i < scafold.size(); i++) {
+        scafold[i]= auxStep * i + _pos;
+    }
+}
+
+  // Other functions to create letters, text, etc. 
+  // ... TO DO ....
+  
  
\ No newline at end of file