Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume you would want the points on the circumference to be evenly distributed along the circumference. If this is the case, you can calculate the number of degrees between each point by dividing 360 by the number of points that you want. Then, you can obtain any point's (x, y) coordinates as such: </p> <pre><code>(x, y) = (cos(angle), sin(angle)) </code></pre> <p>where 'angle' the is the angle for the given point. (This is assuming you want values between -1 and 1, as is the case with a unit circle: <a href="http://en.wikipedia.org/wiki/Unit_circle" rel="nofollow">http://en.wikipedia.org/wiki/Unit_circle</a>) For example, if you want 4 points along the circle's circumference, you can calculate that there is exactly 360/4 = 90 degrees between consecutive points. </p> <p>So let's call these points point0, point1, point2 and point3. Point0 is at an angle of 0 degrees, point1 at 90 degrees (1 * 90), point2 at 180 (2 * 90) and point3 at 270 (3 * 90). The coordinates for each point are then:</p> <pre><code>point0 = (cos(0), sin(0)) = (1, 0) point1 = (cos(90), sin(90)) = (0, 1) point2 = (cos(180), sin(180)) = (-1, 0) point3 = (cos(270), sin(270)) = (0, -1) </code></pre> <p>Keep in mind that you normally start measuring angles on the right side of the horizontal axis of a circle. (On a clock: At the 3) EDIT: Also please note that almost all trigonometric functions in programming take radian values instead of degrees. Radians can be hard to think with, however, which is why it's very useful to know how to convert radians and degrees to eachother. To convert degrees to radians, multiply the degree value by (pi/180). To convert radians to degrees, multiply the radian value by (180/pi). There is a reasoning behind this all, so if you would like to know more about this, I suggest you read up on radians. <a href="http://en.wikipedia.org/wiki/Radian" rel="nofollow">http://en.wikipedia.org/wiki/Radian</a></p> <p>As far as the angle between these points and the point P goes; I will only give you some directions. You can calculate the x- and y-differences between the points and point P (this should be trivial for you, it consists of mere subtractions). Using these two values, you can calculate the angle between the points.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload