Welcome Guest, you are in: Login

Starflight Wiki


RSS
RSS

Navigation






Search the wiki

»

PoweredBy

Starflight I :- Latitude

In SFI latitudes are stored as words scaled by 480, with the equator being at 480.

So to extract a latitude from the data you need the following code.



if (word < 480) {
// SOUTH degrees
latitude = ((480 - word) * 90) / 480;
} else {
// NORTH degrees
latitude = ((word - 480) * 90) / 480;
}



Your Ad Here

ScrewTurn Wiki version 3.0.5.600. Some of the icons created by FamFamFam.