public static double clampAngle(double angle)
	{
		double clampedAngle = angle;
		
		if (angle >= 2*Math.PI)
			clampedAngle = angle - 2*Math.PI;
		else if (angle < 0)
			clampedAngle = 2*Math.PI + angle;
		
		return clampedAngle % (2*Math.PI);
	}