Source/Drone_Main.cs
/*
		 * <summary> 
		 * Transforms the value given to an integer word, aka. does magic and checks if the value is in bounds.
		 * </summary>
		*/
Transforms the value given to an integer word, aka. does magic and checks if the value is in bounds.
Transforms the value given to an integer word aka . does magic and checks if the value is in bounds .
private unsafe int DoubleRefToInt (double conv) {
			int converted = 0;
			try {
				if (conv <= 1 && conv >= -1) {
					float convF = (float)conv;
					converted = *(int*)&convF;
				} else {
					throw new CommandOutOfBounds ();
				}
			}
			catch (Exception err) {
				Console.Error.WriteLine ("{0} argument exceeds maximum size (must be between 1 and -1)", err);
			}
			return converted;
		}
private unsafe int DoubleRefToInt ( double conv ) { int converted = 0 ; try { if ( conv <= 1 && conv >= - 1 ) { float convF = ( float ) conv ; converted = * ( int * ) & convF ; } else { throw new CommandOutOfBounds ( ) ; } } catch ( Exception err ) { Console . Error . WriteLine ( " " , err ) ; } return converted ; }
Transforms the value given to an integer word, aka.
Transforms the value given to an integer word aka .
conv
double