# Circle

Comments in 'Plugin Development' started by Primus, Jul 19, 2015.

1. Offline

### Legoboy0215Notable Member

Joined:
Nov 1, 2014
Posts:
1,724
Minecraft User:
Understand what is sin and cos. Anyone can give me a breif exmple or explanation ?
2. Offline

### PEMapModderNotable MemberPlugin Developer

Joined:
Oct 9, 2013
Posts:
7,294
Plugins:
11
Minecraft User:
You mean you want to know what sin and cos mean? Google.
3. Offline

### PixelGuy75Notable MemberPlugin Developer

Joined:
Feb 9, 2014
Posts:
316
Plugins:
2
Minecraft User:
You didn't learn that in math?
4. Offline

### Legoboy0215Notable Member

Joined:
Nov 1, 2014
Posts:
1,724
Minecraft User:
When would I learn that?
jojoe77777 likes this.
5. Offline

### PEMapModderNotable MemberPlugin Developer

Joined:
Oct 9, 2013
Posts:
7,294
Plugins:
11
Minecraft User:
In Hong Kong, junior secondary 2, generally at 13 years old.

It is actually pretty simple. Look at this diagram:
This basically explains what sin cos and tan are.

Now, let's go more advanced. Look at this circle:

It appears the text is partially hidden. So:

In my code, I additionally added a Y increase along the loop, so as θ increases (sin 0 = sin 360°), the height of the particle also increases. So it becomes like this: (example)
Particle A - 1 block from center at angle 0°
Particle B - 1 block from center at angle 45°, then brought 0.5 meter higher
Particle C - 1 block from center at angle 90°, then brought 1 meter higher
Particle D - 1 block from center at angle 135°, then brought 1.5 meters higher

Mind leaving a like if you find this interesting or helpful
Last edited: Oct 4, 2015
Legoboy0215 likes this.
6. Offline

### PEMapModderNotable MemberPlugin Developer

Joined:
Oct 9, 2013
Posts:
7,294
Plugins:
11
Minecraft User:
Ignore the underlines in the images. It seems to be a bug from QuickMemo+/Google Keyboard.
7. Offline

### Legoboy0215Notable Member

Joined:
Nov 1, 2014
Posts:
1,724
Minecraft User:
But I relly don't understand that. But after @PEMapModder's post, I kinda start seeing how it works. I will google it
Last edited: Oct 4, 2015
PEMapModder likes this.
8. Offline

### PEMapModderNotable MemberPlugin Developer

Joined:
Oct 9, 2013
Posts:
7,294
Plugins:
11
Minecraft User:
Indeed, but I remember that I never understood web definitions of those trigonometric functions until a human taught me in a simple way.
Legoboy0215 likes this.
9. Offline

### CreeperfaceNotable MemberPlugin Developer

Joined:
Nov 8, 2014
Posts:
1,346
Plugins:
4
Minecraft User:
I learned only goniometry (sin, cos, tam) so i know what these functions do but i think i can't use them in 3D
10. Offline

### KripakNew Member

Joined:
Jul 17, 2015
Posts:
45
Minecraft User:
In Russia sin, cos on the geometry are in the ninth grade. I don't understand these formulas
So i don't understand use these functions.
11. Offline

### PEMapModderNotable MemberPlugin Developer

Joined:
Oct 9, 2013
Posts:
7,294
Plugins:
11
Minecraft User:
Draw a plane in your 3D, then it becomes a 2D.
12. Offline

### tigerza118Active Member

Joined:
Jan 31, 2015
Posts:
100
Minecraft User:
from plugin Firework
PHP:
``` \$mx = mt_rand(-\$size, \$size) / 5;            \$my = mt_rand(-\$size+1, \$size+1) / 5;            \$mz = mt_rand(-\$size, \$size) / 5;            \$motion = new Vector3(\$mx, \$my, \$mz); ```