I am working on implementing the SRD in Python (programming language), but unfortunately I am not great at math. I am stumped with figuring out how to calculate all of the squares that are within range of a radius (or cone) attack.
I did find What is a radius on a square grid?, which gives a handy formula for calculating the distance between squares (if a given square is within range). D=√((X * X)+(Y * Y))
I am hoping there are some math whizzes on here that can help me come up with a formula!
I am using a simple coordinate system, (x,y) starting with 0 as first row on top and 0 as first column on the left.