Results 1 to 2 of 2

Thread: math question,y=mx+b,it's been too long for me

  1. #1

    Thread Starter
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606
    I need some help from you guys.

    i'm doiing something in flash but you will be able to
    help me,let say i have a cartesian plan:
    Code:
       -,-  |    +,-
            |
       _____|_____
            |
            |
       -,+  |    +,+
    let say i have a point at 0,0 and i move my mouse on
    the cartesian plan,i would like to move the point from
    2 or 3 position,but to have the same angle as the mouse

    i think i would need the y=mx+b equation but i'm not sure
    and i don't remember how to use it,can some body help,
    post it in vbcode i'll translate it after!!

    example(*=mouse location;.=point)
    Code:
                
            |       *
            |
       _____|_.___
            |
            |
            |
    Code:
            |*  
            |
       _____|._____
            |
            |
            |
    Code:
            |    
            |
       _____|_____
          . |
            |
       *    |
    well,something like thaT!!!

    THANX FOR THE HELP!!

  2. #2
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    b is your y intercept (where your line crosses the X axis)
    m is your slope (example: 3 = 3 over 1, so you would go up 3 and over 1)

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