@@ -44,7 +44,7 @@ public static string DistanceToCenter(double x, double y, double z)
44
44
{
45
45
return string . Format ( "{0:0}" , ( Math . Sqrt ( Math . Pow ( x , 2 ) + Math . Pow ( y , 2 ) + Math . Pow ( z , 2 ) ) * 100 ) * 4 ) + " ly" ; //"{0:0.##}"
46
46
}
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 )
48
48
{
49
49
//PlanetNumber--SolarSystemIndex--GalaxyNumber--VoxelY--VoxelZ--VoxelX
50
50
//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
118
118
119
119
Planet = pidec ;
120
120
}
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 )
122
122
{
123
123
//PlanetNumber--SolarSystemIndex--GalaxyNumber--VoxelY--VoxelZ--VoxelX
124
124
//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
192
192
193
193
Planet = pidec ;
194
194
}
195
- private void HexToVoxel ( string basehx , out string GalacticCoord2 , TextBox tb )
195
+ private static void HexToVoxel ( string basehx , TextBox tb )
196
196
{
197
197
//PlanetNumber--SolarSystemIndex--GalaxyNumber--VoxelY--VoxelZ--VoxelX
198
198
//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)
255
255
//int ihexSSI = (Convert.ToInt32(ssidec, 16) & 0xFFFF); // SSI[HEX] to SSI[DEC] 3 digits
256
256
257
257
//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
259
259
Globals . AppendLine ( tb , "Galactic Coordinates: " + GalacticCoord2 ) ;
260
260
261
261
int shiftX = calc1 - 2047 ;
@@ -392,6 +392,7 @@ public static string GalacticToPortal(int Planet, string X, string Y, string Z,
392
392
393
393
string PortalCode = string . Format ( Planet + "{0:X3}{1:X2}{2:X3}{3:X3}" , ihexSSI , ihexY , ihexZ , ihexX ) ; // Format digits 1 3 2 3 3
394
394
//[P][SSI][Y][Z][X] Portal Code
395
+ //Globals.AppendLine(tb, "*** Portal Code: " + PortalCode + " ***");
395
396
396
397
return PortalCode ;
397
398
//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
545
546
546
547
return PortalCode ;
547
548
}
548
- public static string PortalToVoxel ( string portalcode , TextBox tb )
549
+ private static void PortalToVoxel ( string portalcode , TextBox tb )
549
550
{
550
551
//0 04A FB 9F6 C9D
551
552
//Break apart Portal Code
@@ -597,8 +598,6 @@ public static string PortalToVoxel(string portalcode, TextBox tb)
597
598
//Globals.AppendLine(tb, "Voxel Coordinates: X:" + shiftX + " Y:" + shiftY + " Z:" + shiftZ + " SSI:" + ssidec);
598
599
Globals . AppendLine ( tb , "*** Voxel Coordinates - Portal#:" + iPlanet + " SSI#:" + iSSI + " Y:" + iY + " Z:" + iZ + " X:" + iX + " ***" ) ;
599
600
//voxel = "Portal#:" + "0" + " SSI:" + "0" + " Gal#:" + iSSI + " Y:" + iY + " Z:" + iZ + " X:" + iX;
600
-
601
- return GalacticCoord2 ;
602
601
}
603
602
public static string VoxelToGalacticCoord ( int X , int Y , int Z , int SSI )
604
603
{
@@ -660,7 +659,7 @@ public static string VoxelToGalacticCoord(int X, int Y, int Z, int SSI, TextBox
660
659
661
660
return GalacticCoord ;
662
661
}
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 )
664
663
{
665
664
//Galactic Coordinate to Voxel Coordinates
666
665
@@ -688,7 +687,7 @@ public static void GalacticToVoxel(string X, string Y, string Z, string SSI, out
688
687
iZ = vZ ;
689
688
iSSI = icSSI ;
690
689
}
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 )
692
691
{
693
692
//Galactic Coordinate to Voxel Coordinates
694
693
tb . Clear ( ) ;
@@ -717,7 +716,7 @@ public static void GalacticToVoxel(string X, string Y, string Z, string SSI, out
717
716
iZ = vZ ;
718
717
iSSI = icSSI ;
719
718
}
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 )
721
720
{
722
721
//Galactic Coordinate to Voxel Coordinates
723
722
tb . Clear ( ) ;
0 commit comments