Any engine is just an air pump, air/fuel in, compress, power stroke, and exhaust gas out.
Displacement (cc or ci) is a function of how much air the engine can displace in one revolution.
To figure displacement you take the bore diameter and stroke length to figure the volume of air the engine...