Changeset 7184 for code/trunk/src/modules/designtools
- Timestamp:
- Aug 18, 2010, 9:46:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/designtools/CreateStars.cc
r7163 r7184 38 38 { 39 39 CreateFactory(CreateStars); 40 41 static const float pi = 3.14159265359f;42 40 43 41 CreateStars::CreateStars(BaseObject* creator) : BaseObject(creator) … … 90 88 while(1) 91 89 { 92 phi = rnd(2* pi);93 teta = rnd( pi);90 phi = rnd(2*math::pi); 91 teta = rnd(math::pi); 94 92 float random = rnd(1); 95 93 if(sin(teta)>random) break;
Note: See TracChangeset
for help on using the changeset viewer.