Welcome Guest, you are in: Login

Starflight Wiki


RSS
RSS

Navigation






Search the wiki

»

PoweredBy

Starflight I :- Longitude

In SFI longitudes are stored as words.

Each word is based on a scale of 1152 with the meridian being at 1152.

Hence to extract a longitude from the data you need the following code.


if (word < 1152 {
// WEST degrees
longitude = ((1152 - word) * 180) / 1152;
} else {
// EAST degrees
longitude = ((word - 1152) * 180) / 1152;
}


Your Ad Here

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