To go back to your original example, x=5 z=3, we have
Radius#=Sqr(5^2+3^2)
Then points on a circle are given by
newX# = CenterX# + Radius*Cos(Angle#)
newY# = CenterZ# + Radius*Sin(Angle#)
The only remaining question is where to start. The answer is
Angle0# = ATan2( 3, 5 )
With this angle we get newX = 5 and newY = 3.
After that use 45+Angle0, 90+Angle0 etc.
Radius#=Sqr(5^2+3^2)
Then points on a circle are given by
newX# = CenterX# + Radius*Cos(Angle#)
newY# = CenterZ# + Radius*Sin(Angle#)
The only remaining question is where to start. The answer is
Angle0# = ATan2( 3, 5 )
With this angle we get newX = 5 and newY = 3.
After that use 45+Angle0, 90+Angle0 etc.