c# - Calculating coordinates in circle -


My problem is basically to calculate the X and Y coordinates of the second element in the following situation.

For Unity 3D in a Device, using C #

Enter image details here

Suppose the box size is the length of the object "LAN" (it would be really good to know what is happening, I fully understand I can not say.) And say That you have an angle of θ.

I'm assuming that the center of the board coordinates (0,0).

Then vertical distance from the center of the circle to the edge of that circle where the box touches y = taking * sin (θ) and for the horizontal distance, the lan * cos (¸¸¸).

If you are going 2/5 to the box path, then you will use Lennon / 5 instead of lane.

It's just math behind it in C # you want to use mathematical orbit. In this, all the functions you need are careful with radians and degrees

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -