I want to create a class called point which can calculate the position given the co-ordinates and the size of the spread sheet. The following are the results expected from GetPosition method if the size of the spread sheet is 3X3:

[![enter image description here](https://i.stack.imgur.com/zEah3.jpg)](https://i.stack.imgur.com/zEah3.jpg)

> 
> co-ordinates (0,0) means 0 position
> 
> 
> co-ordinates (0,1) means 1 position
> 
> 
> co-ordinates (0,2) means 2 position
> 
> 
> co-ordinates (1,0) means 3 position
> 
> 
> co-ordinates (1,1) means 4 position
> 
> 
> co-ordinates (1,2) means 5 position
> 
> 
> co-ordinates (2,0) means 6 position
> 
> 
> co-ordinates (2,1) means 7 position
> 
> 
> co-ordinates (2,2) means 8 position
> 
> 
> 

```
 public struct MyPoint 
    {
        /* eg a in spread sheet of 3X3
         co-ordinates (0,0) means 0 position
         co-ordinates (0,1) means 1 position
         co-ordinates (0,2) means 2 position
         co-ordinates (1,0) means 3 position
         co-ordinates (1,1) means 4 position
         co-ordinates (1,2) means 5 position
         co-ordinates (2,0) means 6 position
         co-ordinates (2,1) means 7 position
         co-ordinates (2,2) means 8 position

         */
        public int Size_X { get; }
        public int Size_Y { get;; }
        public int X { get; }
        public int Y { get; }
        public MyPoint(int x, int y, int size_x,int size_y)
        {
            this.X = x;
            this.Y = y;
            this.Size_X = size_x;
            this.Size_Y = size_y;
        }
        // algorithm to get position 
       public int GetPosition ()
        {
            return 0;
        }

    }

```