![](/media/cache/profiles/68a15b5278e4f7c4c056df9d5f1d3b1f.jpg.50x50_q85.jpg)
just a test
Fork of scoreLight_Advanced by
classRigidScafold.cpp
- Committer:
- mbedalvaro
- Date:
- 2012-03-31
- Revision:
- 1:a4050fee11f7
- Parent:
- 0:345b3bc7a0ea
- Child:
- 3:b44ff6de81bd
File content as of revision 1:a4050fee11f7:
#include "classRigidScafold.h" RigidScafold::RigidScafold() { } RigidScafold::~RigidScafold() { } void RigidScafold::buildCircularScafold(float _radius, vector2D _pos, vector2D _vel, int _numScafoldPoints) { scafold.resize(_numScafoldPoints); radius=_radius; center=_pos; speed=_vel; // NOTE: the scafold itself is centered around (0,0), but has a "center" variable for (int i = 0; i < scafold.size(); i++) { scafold[i].x= radius * cos ( (1.0*i / _numScafoldPoints) * 2 * PI); scafold[i].y= radius * sin ( (1.0*i / _numScafoldPoints) * 2 * PI); } } // Other functions to create letters, text, etc. // ... TO DO ....