Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
Int16Pair.h
00001 /* 00002 * SOURCE FILE : Int16Pair.h 00003 * 00004 * Pair of Int16s in a class. 00005 * 00006 */ 00007 00008 #ifndef Int16PairIncluded 00009 00010 #define Int16PairIncluded 00011 00012 #include "Types.h" 00013 00014 class Int16Pair { 00015 00016 public : 00017 00018 // X and Y components. 00019 Int16 X, Y; 00020 00021 /***************/ 00022 /* CONSTRUCTOR */ 00023 /***************/ 00024 Int16Pair() : 00025 X( 0 ), 00026 Y( 0 ) 00027 { 00028 } 00029 00030 /***************/ 00031 /* CONSTRUCTOR */ 00032 /***************/ 00033 // Pass X and Y components in x and y. 00034 Int16Pair( Int16 x, Int16 y ) : 00035 X( x ), 00036 Y( y ) 00037 { 00038 } 00039 00040 }; 00041 00042 #endif 00043 00044 /* END of Int16Pair.h */ 00045
Generated on Tue Jul 12 2022 21:10:36 by
1.7.2