add z coord calculation to polarpoint