Looking for a method to find all the integer coordinates on the edge of a circle using a known radius.
The assumption is that we have a known radius $R$ (e.g. $R=254$). How would you calculate all the available integer points on the circle between $0$ and $90$ degrees?
Is there a Java Package that uses Big Decimal that can be used with the above methodology?
Assuming the center of the circle is the origin (or at least a lattice point), you want integer solutions to $x^2+y^2=N(=R^2=254^2)$, or a Gauß lattice point $x+iy\in\Bbb Z[i]$ of norm $R^2$. The existence of such solutions depends on the prime factorization of $N$, that corresponds to possible factorizations of $x+iy$. We can always multiply a solution by $i$ or $-1$ or $-i$ (i.e., swap the $x$ and $y$ and change signs).
We find the prime factorization of $N$ as $N=254^2=2^2\cdot127^2$. Following the above, we find exactly the following: $$x+iy = u\cdot (1+i)^2\cdot 127 \qquad \text{with }u\in\{1,i,-1,-i\} $$ i.e., $$ x+iy\in\{254i,-254,-254i,254\}.$$ In other words, one of $x,y$ must be $=0$, the other $=\pm 254$, there are no non-trivial lattice points. As you want to restrict to the range from $0°$ to $90°$, we are left wuth $(254,0)$ and $(0,254)$.