use double instead of int32_t for coordinates