@@ -44,7 +44,7 @@ public static string DistanceToCenter(double x, double y, double z)
4444 {
4545 return string . Format ( "{0:0}" , ( Math . Sqrt ( Math . Pow ( x , 2 ) + Math . Pow ( y , 2 ) + Math . Pow ( z , 2 ) ) * 100 ) * 4 ) + " ly" ; //"{0:0.##}"
4646 }
47- public static void CalculateLongHex ( string hx , out string GalacticCoord2 , out int Planet , out int galdec )
47+ private static void CalculateLongHex ( string hx , out string GalacticCoord2 , out int Planet , out int galdec )
4848 {
4949 //PlanetNumber--SolarSystemIndex--GalaxyNumber--VoxelY--VoxelZ--VoxelX
5050 //4 bit--12 bit--8 bit--8 bit--12 bit--12 bit
@@ -118,7 +118,7 @@ public static void CalculateLongHex(string hx, out string GalacticCoord2, out in
118118
119119 Planet = pidec ;
120120 }
121- public static void CalculateLongHex ( string hx , out string GalacticCoord2 , out int Planet , out int galdec , TextBox tb )
121+ private static void CalculateLongHex ( string hx , out string GalacticCoord2 , out int Planet , out int galdec , TextBox tb )
122122 {
123123 //PlanetNumber--SolarSystemIndex--GalaxyNumber--VoxelY--VoxelZ--VoxelX
124124 //4 bit--12 bit--8 bit--8 bit--12 bit--12 bit
@@ -192,7 +192,7 @@ public static void CalculateLongHex(string hx, out string GalacticCoord2, out in
192192
193193 Planet = pidec ;
194194 }
195- private void HexToVoxel ( string basehx , out string GalacticCoord2 , TextBox tb )
195+ private static void HexToVoxel ( string basehx , TextBox tb )
196196 {
197197 //PlanetNumber--SolarSystemIndex--GalaxyNumber--VoxelY--VoxelZ--VoxelX
198198 //4 bit--12 bit--8 bit--8 bit--12 bit--12 bit
@@ -255,7 +255,7 @@ private void HexToVoxel(string basehx, out string GalacticCoord2, TextBox tb)
255255 //int ihexSSI = (Convert.ToInt32(ssidec, 16) & 0xFFFF); // SSI[HEX] to SSI[DEC] 3 digits
256256
257257 //Globals.AppendLine(textBox14, "P: " + "X:" + hexX + " Y:" + hexY + " Z:" + hexZ + " SSI:" + ssidec);
258- GalacticCoord2 = string . Format ( "{0:X4}:{1:X4}:{2:X4}:{3:X4}" , ihexX , ihexY , ihexZ , ssidec & 0xFFFF ) ; //Format to 4 digit seperated by colon
258+ string GalacticCoord2 = string . Format ( "{0:X4}:{1:X4}:{2:X4}:{3:X4}" , ihexX , ihexY , ihexZ , ssidec & 0xFFFF ) ; //Format to 4 digit seperated by colon
259259 Globals . AppendLine ( tb , "Galactic Coordinates: " + GalacticCoord2 ) ;
260260
261261 int shiftX = calc1 - 2047 ;
@@ -392,6 +392,7 @@ public static string GalacticToPortal(int Planet, string X, string Y, string Z,
392392
393393 string PortalCode = string . Format ( Planet + "{0:X3}{1:X2}{2:X3}{3:X3}" , ihexSSI , ihexY , ihexZ , ihexX ) ; // Format digits 1 3 2 3 3
394394 //[P][SSI][Y][Z][X] Portal Code
395+ //Globals.AppendLine(tb, "*** Portal Code: " + PortalCode + " ***");
395396
396397 return PortalCode ;
397398 //Globals.AppendLine(tb, "*** Portal Code: " + PortalCode + " ***");
@@ -545,7 +546,7 @@ public static string VoxelToPortal(int P, int X, int Y, int Z, int SSI, TextBox
545546
546547 return PortalCode ;
547548 }
548- public static string PortalToVoxel ( string portalcode , TextBox tb )
549+ private static void PortalToVoxel ( string portalcode , TextBox tb )
549550 {
550551 //0 04A FB 9F6 C9D
551552 //Break apart Portal Code
@@ -597,8 +598,6 @@ public static string PortalToVoxel(string portalcode, TextBox tb)
597598 //Globals.AppendLine(tb, "Voxel Coordinates: X:" + shiftX + " Y:" + shiftY + " Z:" + shiftZ + " SSI:" + ssidec);
598599 Globals . AppendLine ( tb , "*** Voxel Coordinates - Portal#:" + iPlanet + " SSI#:" + iSSI + " Y:" + iY + " Z:" + iZ + " X:" + iX + " ***" ) ;
599600 //voxel = "Portal#:" + "0" + " SSI:" + "0" + " Gal#:" + iSSI + " Y:" + iY + " Z:" + iZ + " X:" + iX;
600-
601- return GalacticCoord2 ;
602601 }
603602 public static string VoxelToGalacticCoord ( int X , int Y , int Z , int SSI )
604603 {
@@ -660,7 +659,7 @@ public static string VoxelToGalacticCoord(int X, int Y, int Z, int SSI, TextBox
660659
661660 return GalacticCoord ;
662661 }
663- public static void GalacticToVoxel ( string X , string Y , string Z , string SSI , out int iX , out int iY , out int iZ , out int iSSI )
662+ private static void GalacticToVoxel ( string X , string Y , string Z , string SSI , out int iX , out int iY , out int iZ , out int iSSI )
664663 {
665664 //Galactic Coordinate to Voxel Coordinates
666665
@@ -688,7 +687,7 @@ public static void GalacticToVoxel(string X, string Y, string Z, string SSI, out
688687 iZ = vZ ;
689688 iSSI = icSSI ;
690689 }
691- public static void GalacticToVoxel ( string X , string Y , string Z , string SSI , out int iX , out int iY , out int iZ , out int iSSI , TextBox tb )
690+ private static void GalacticToVoxel ( string X , string Y , string Z , string SSI , out int iX , out int iY , out int iZ , out int iSSI , TextBox tb )
692691 {
693692 //Galactic Coordinate to Voxel Coordinates
694693 tb . Clear ( ) ;
@@ -717,7 +716,7 @@ public static void GalacticToVoxel(string X, string Y, string Z, string SSI, out
717716 iZ = vZ ;
718717 iSSI = icSSI ;
719718 }
720- public static void GalacticToVoxel ( string X , string Y , string Z , string SSI , TextBox tb )
719+ private static void GalacticToVoxel ( string X , string Y , string Z , string SSI , TextBox tb )
721720 {
722721 //Galactic Coordinate to Voxel Coordinates
723722 tb . Clear ( ) ;
0 commit comments