Changeset 11739 for code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidBelt.cc
- Timestamp:
- Feb 12, 2018, 12:17:34 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidBelt.cc
r11736 r11739 88 88 float myPi = 3.1415927410125732421875; //pi; // Math.pi ist statisch oder so. 89 89 float width = this->radius1 - this->radius0; if(width<0){width = -width;} // predefined abs? 90 float radius = (this->radius1 + this->radius0) / 2.0 ;91 int segmentCount = round(this->count / this->segments);90 float radius = (this->radius1 + this->radius0) / 2.0f; 91 int segmentCount = (int)roundf(this->count / this->segments); 92 92 93 93 float dPhi = (2 * myPi) / this->segments; 94 float dTheta = 4.0 *this->tiltBy/this->segments;94 float dTheta = 4.0f*this->tiltBy/this->segments; 95 95 float sepp = -this->tiltAt; 96 float globi = (myPi/2.0 ) + this->tiltBy;96 float globi = (myPi/2.0f) + this->tiltBy; 97 97 98 98 for(int s = 0; s<segments; ++s){
Note: See TracChangeset
for help on using the changeset viewer.