- #1

- 2

- 0

I'm a programmer but hopeless at maths, new to this forum so seriously hoping you can help please.

I need to draw spokes in a circle as part of a program. Like a dartboard or spokes of a wheel.

X = cos(t) and

Y = sin(t)

For a unit circle where t is the angle.

That’s all ok.

Unit circle has origin of 0,0

My circle has an origin 200,200.

Unit circle has coordinates as so:

East: 1,0

North: 0,1

West: -1,0

South: 0,-1

My circle has coordinates as follows:

East: 400,200

North: 200,0

West: 0,200

South: 200,400

Where north south east and west are the outermost points of the circle.

Note that in my circle the Y axis is inverted.

I tried:

X = 200 + cos(t) * 200

Y = 200 + sin(t) * 200

This gets me points on the circumference of the circle for each value of t (the angle).

However the points derived do not correspond to anywhere near where I want them to be. t = 0 is correct, t = 1 gives me a point that looks like an angle greater than 180 degrees.

I just cannot figure this out, hoping you can provide some help, please.

Thank You

John