General question regarding C# in general (but could also be about C# usage in Unity or any programming language really), I talked with some people about me creating a Vector2 class (in this case I'm using Java, so that class doesn't exist by default) and I wanted to use that Vector2 as a way to store 2 values (x and y) to use it in a method that checks if a value is in range between a min and a max and they told me it's bad practice because Vector2 is mathematical concept, so it doesn't make sense to use it to store 2 values to do a check on a range.
Are what they're saying correct ? After checking the official Microsoft doc about Vector2 in C#, the doc seems to say the same thing as them. But then, if it's true, is there another structure / other name that I can give to my class that can hold 2 (or more) values (here they're floats) ?
Please ping me if any answer 🙂