Richard Ellingworth / Mbed 2 deprecated RobotRic

Dependencies:   25LCxxx_SPI CommonTypes Gameduino mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Int16Pair.h Source File

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