Ejemplo n.º 1
0
 /// <summary>
 /// Converts a <see cref="Tuple"/>{int, int} to a bit array.
 /// This array is build up of 64 bits (two integers).
 /// note that int is signed, the MSB is the sign.
 /// </summary>
 /// <example>
 /// var tuple = new Tuple{int, int} { int.max, int.min };
 /// tuple.AsBitArray();
 /// // [ 1111111 0111111 ]
 /// </example>
 /// <param name="point">The point to convert to a bit array</param>
 /// <returns>Bit array representing the point.</returns>
 public static bool[] AsBitArray(this Tuple <int, int> point)
 {
     return(point.AsByteArray().AsBitArray());
 }