All pastes #262147 Raw Edit

Untitled

public cpp v1 · immutable
#262147 ·published 2006-11-30 05:31 UTC
rendered paste body
void PwnNoobs(){	const float PI = 3.14159f;						// Create a constant for PI	const float numSquaresPerCircle =16.0f;					// This is the angle we increase by in radians	const float MAX = PI * 2;					       // This is 360. degrees of rotation in radians )	float radius = 40;									// We start with a radius of 40 and decrease towards the center	// Keep looping until we go past the max degrees of rotation (which is 3 full rotations)	for(float degree = 0; degree < MAX; degree += PI/numSquaresPerCircle)	{				float x = float(radius * cos(degree));			// Get the x position for the current rotation and radius		float y = float(radius * sin(degree));			// Get the y position for the current rotation and radius	}	}