A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: simple trigonometry question please help

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    5

    simple trigonometry question please help

    how to find x and y?
    if we know length of red line and rotation
    mc's registration point is on top left corner



    thank you

  2. #2
    Knows where you live
    Join Date
    Oct 2004
    Posts
    944
    There is undoubtably an easier way but I would run an atan2 to find the angle of the red line. A math.sqrt (x*x,y*Y) for the length of the red line then use sin/cos to move the length of the red line in the direction of the red line + 20 degrees.
    The greatest pleasure in life is doing what people say you cannot do.
    - Walter Bagehot
    The height of cleverness is to be able to conceal it.
    - Francois de La Rochefoucauld

  3. #3
    Junior Member
    Join Date
    Jan 2006
    Posts
    5
    thank you : )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center