Something as simple as

Code:
x GetX()
{
   return x;
}

// and then for y

y GetY()
{
   return y;
}