I have a function which needs to take out equidistant points between two points on the screen(2d).
Like this -
|--------------|
The distance is already decided. For example, I take it as `2` here, then the points I need the -
|--.--.--.--.--|
The points can be anywhere on the 2d plane, which means if I draw a line between the two points, it can be any orientation possible in a 2d plane, i.e diagonal, horizontal, etc.
I can't figure out how to do this in python.
I do not know what to google for ... And I'm 14 so I don't know any type of math for this.
I know the how to calculate distance and slope of the line, but I don't know how to proceed.
Thanks in advance!