code: def formatPoint(point, affine):
      
      # Affine coordinates: (x,y)        
      if affine:
          fmt = "\tx:{}\n\ty:{}"
          coords = [point.x, point.y]
  
      # Projected coordinates: (x,y,z)
      else:
          fmt = "\tx:{}\n\ty:{}\n\tz:{}"
          coords = [point.x, point.y, point.z]
  
      coordText = map(hexString, coords)
      return fmt.format(*coordText)
docs: Retrieves a string representation of @point