Modularized circle math.