my friend told me that there was a program that made locations in the shape of a circle. Of course i asked him for the link, but he said he forgot where he found it (Unlikely). so i went here, and i just want to confirm that theres no program that makes circle locations. Am I right?
None.
Yes, you cannot make circular locations.
None.
To further explain, locations are made of 4 numbers, a max X, a min X, a max Y, and a min Y, so a circular location is not possible.
None.
To further explain, locations are made of 4 numbers, a max X, a min X, a max Y, and a min Y, so a circular location is not possible.
that is what i told him, but then he gave me coordinates x+y or something along that line. and a radii(radius) as well.
None.
Tbh, I think it's pretty impossible for it to exist, let alone work. I don't think SC would support a program like that. I'm not a programmer, but I'm pretty sure that you'd have to write a mod that would allow it. SC literally doesn't have the programming in writing for it, so he's bullshitting you.
None.
a digital circle is a series of rectangles. It all depends on how accurate you want the "circle" to be.
A circle's equation is x^2+y^2=r^2
Let's say you want a circle of diameter 9 squares. That means you'll want to solve the equation for x=[0,4]. Lucky for us, working with squares makes this simple. Only use integers to find the +/- y value for each.
x y
0 4.5
1 4.387482194
2 4.031128874
3 3.354101966
4 2.061552813
Now, you have some numbers. Double the y value.
x y
0 9
1 8.774964387
2 8.062257748
3 6.708203932
4 4.123105626
Now your rectangles are:
1x9, 9x1
3x9, 9x3
5x8, 8x5
7x7, 7x7
9x4, 4x9
Obviously, some of these cancel out, specifically the first two lines. That means with 5 locations centered on a unit, you have a "sort of" circle:
5x8
8x5
7x7
9x4
4x9
You can tweak it more if you would like.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
To get close to a a real "Circle" (Digital Circle), you'd need to have quite a few locations.
So, Basically, if C = (Pi)(D)
When C is Circumference and D = Diameter, then
You'd need 4C (C/.25), because each location has 4 corners.
So, If you had a Circle With a Diameter of 320 Pixels (About the length of 10 Terrain Tiles), you'd need 4C = (3.14159)(320)
Crunching these numbers makes it 4C = 1005.30965
Then, Divide by 4 (To isolate C, the variable)
This would give you 251.32741228 Locations needed, but you have a decimal.
Since you cannot have part of a location, you'd need to round up, making it 252 Locations for a Circle with 5 squares that is a circle precise down to the pixel.
None.