#include <ratio.h>
Public Member Functions | |
Ratio () | |
Default constructor. | |
Ratio (int32_t x, int32_t y) | |
Constructor setting x and y. | |
Ratio (Ratio const &r) | |
Copy constructor. | |
Ratio & | operator= (Ratio const &right) |
Assignment operator. | |
bool | operator== (Ratio const &right) |
Comparison operator. | |
int32_t | x () const |
Returns the X value. | |
int32_t | x (int32_t x) |
Sets the X value. | |
int32_t | y () const |
Returns the Y value. | |
int32_t | y (int32_t y) |
Sets the Y value. |