Best way to add a similar function?

I have a 2D coordinate class that I use for tiles, and would like to add a more freeform version of it to my project to deal with moving objects. (basically I need to change some ints to floats, and modify the functions a little bit to work with floats)

Is it best to just add a new class similar to the one ive got, or should I create an abstract class and make both classes inherit from there, or use some other method?

by ghosttr via /r/csharp

Leave a Reply