maths problem
Author
Discussion

size13

Original Poster:

2,033 posts

287 months

Tuesday 4th July 2006
quotequote all


if the blue line can rotate, like a car speedo
how do I get the position at which it intersects the circle (red cross) as an x, y coordinate from the top left?

p.s. click the pic to make it look better. in this example, the image is 1000 x 500

Edited by size13 on Tuesday 4th July 17:46

M@H

11,298 posts

302 months

Tuesday 4th July 2006
quotequote all
http://planetmath.org/encyclopedia/Ci

see "The circle in analytic geometry"

Cheers
Matt

funkynige

9,840 posts

305 months

Tuesday 4th July 2006
quotequote all
Well, assuming you want the position as a function of the angle of the blue line from the horizontal...
the x coordinate from the origin is the radius of the circle times the sine of the angle the blue line makes with the horizontal.
the y coordinate from the origin is the radius of the circle times the cosine of the angle the blue line makes with the horizontal.

That will give coordinates from the centre of the circle, I'm sure you can go from there.

pdV6

16,442 posts

291 months

Wednesday 5th July 2006
quotequote all
Looks like a simple SOH CAH TOA, as presumably you know the radius of the circle and are given an angle to work from.

size13

Original Poster:

2,033 posts

287 months

Wednesday 5th July 2006
quotequote all
funkynige said:
Well, assuming you want the position as a function of the angle of the blue line from the horizontal...
the x coordinate from the origin is the radius of the circle times the sine of the angle the blue line makes with the horizontal.
the y coordinate from the origin is the radius of the circle times the cosine of the angle the blue line makes with the horizontal.

That will give coordinates from the centre of the circle, I'm sure you can go from there.
spot on, thanks