user12067722
user12067722

Reputation:

Interleave float coordinates without error

I wonder how I can interleave float coordinates. This website describes how to do the interleaving part, but it is only for integers.

I have tried following method:

lat = 5.01, lng = 6.01

newLat = (5.01+90) * 100

newLng = (6.01+180) * 100

But it appears to not have the right bit sequence. Does someone know of a better way to represent lat and lng as a 32 bit sequence?

Upvotes: 1

Views: 137

Answers (0)

Related Questions