There is a static mode and dynamic mode.
Summarize in 5 steps to be completed. First 3 steps is junior high-school mathematics, when you calculate inverse tangent to know the angle between 2 graphics.
In static mode, take 2 graphics positions on the computer screen, record their coordinates on the x and y axis as (x1, y1) and (x2, y2) in pixels.
(i) Measure the horizontal distance between them as x2-x1 and convert that to a positive value.
(ii) Measure the vertical distance between them as y2-y1 and convert that to a positive value.
Take the ratio of vertical distance (ii) / horizontal distance (i) and then calculate the arctan of the value. This gives the inverse tangent. This is in radians still, so finally convert radians to degrees by multiplying by a 180/PI. High school mathematics.
(iii) Make the first object go towards the 2nd object along the direction from the angle found between them.
(iv) Able to vary speed of 1st graphic: Move ahead 1 graphic position by 1 seconds each time is slow, or move ahead by 0.1 seconds each time means in 1 seconds, ten times the distances covered than the former, so allow speed to ve varied.
(v) In dynamic mode, able to vary 2nd graphic's position any time on the screen, thus forcing 1st graphic to recalculate positions and angles between them, in order to change direction to chase in the new direction. Dynamic means anytime the 2nd graphic can change its position, and so the first graphic must change direction to approach the 2nd graphic in the new direction.
2nd graphic position is dictated by mouse cursor, while 1st graphic goes after 2nd graphic wherever it goes, based on the approach given above.
Programmer will first check if 2nd graphic is:
(a) to the right and above 1st graphic, or
(b) to the left and above 1st graphic, or
(c) to the right and below 1st graphic, or
(d) to the left and below 1st graphic,
according to a straightforward 2-sentence code I shall send you when project begins.
Prefer programmer with good knowledge of trigonometry and very communicative and responsive, without other clients' work burdening , so that we can finish this, hopefully in a few days' time.
Hi
I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction
so lets start
Thanks
Can you please explain more about the task ?
I am good at both math and javascript, I think that i can help.
Hope we can work together.
Thanks for reading
Actually, we are a software/ website outsourcing company. We have extensive experience of developing static and dynamic websites with complete implementation and support. We are using state of the art latest technologies like asp.net and php with sql and mysql databases.
Muhammad Umar