Redundancy of structures

Viewed 178

I'd like to get some opinion from more experienced programmers. I have a structure like:

struct Position {
    int x;
    int y;
};

but I need to store for example longitude in a structure like:

struct Longitude {
    int from;
    int to;
};

both of them are actually the same with different names, but x and y are misleading in the case of Longitude. Would you use some typedef Position Longitude instead of defining Longitude structure (but then we have x/y there...)? Or create the same redundant structure with another names? Or maybe there are other alternatives?

4 Answers
Related