Just had a thought about the meaning of the "P" value - this is actually the height at which the pitch diameter would ride at.

So, if you had a 60mm diameter gear, and "P" was 10mm, then the centre of the gear would be 40mm from the base of the rack.