Back to high-school Trig basics

Given this diagram, i need to find the coordinate X,Y.

Maths problem

Essentially, the problem is when a line is drawn from (0,0) extending length radius (r) to the intersection of the circle, and given an angle t, find point (x,y).

i know i used to do this kind of thing easy back in high-school but all this database development and ASP.NET has made my core maths soft.

took me a bit, but i got it.

    sin(t) = x/r,
    x = r.sin(t)

    cos(t) = y/r,
    y = r.cos(t)

reason? extend (x,y) downward such that it intersects with the x-axis (call it point A). you now have two parallel lines, and angle t is the interior opposite angle of a right-angle triangle between A, (0,0) and (x,y). The rest is SOH-CAH.

i thought about it for a while, but this proves i really need to brush up on my high-school maths. sheesh.


Related posts:

  1. WPF And Animation Basics I've recently been getting my hands dirty with WPF as...
  2. A Programming Job Interview Challenge #14 - 2D Geometry Well I could tell a lie and say that I...
  3. The Hollywood Principle The Hollywood principle is a software design methodology that takes...
  4. Power-levelling enchanting World of Warcraft: It's entirely possible to drop one of...

Leave a Reply


The Tomes Of Experience - powered by WordPress (themed by selder) 0.361 seconds.
13:42:20 06-01-2009