Math/ Computers

Posted by Ariel on Saturday, November 10, 2007 at 4:33pm.

So I need a function (parameters: origin x, origin y, destination x, destination y, object x1, object y1, object x2, object y2). The object in this case would be a wall with two points (x1, y1, x2, y2). The function needs to return a true/false if the wall intersects the path. As in, does it cross between the origin and destination. In other words, we have two finite lines (path of movement and wall), and I need to know if they cross.

How do I do that?

I program in basic (small basic) but I would rather if you wouldn't add code, just plain english.

Thanks in advance!

  1. 👍
  2. 👎
  3. 👁

Respond to this Question

First Name

Your Response

Similar Questions

  1. PHYSICS - still cant get it

    A 0.30-kg softball has a velocity of 12 m/s at an angle of 30° below the horizontal just before making contact with the bat. What is the magnitude of the change in momentum of the ball while it is in contact with the bat if the

  2. math

    Ariel is making flower arrangements. He has 7 roses and 14 daisies. If Ariel wants to make all the arrangements identical and have no flowers left over, what is the greatest number of flower arrangements that he can make?

  3. Physics

    if it takes 726 watts of power to move a mass 36 meters in 14 seeconds, what is the mass? i really need like, step by step help please? asap. thanks, michelle . physics - bobpursley, Saturday, November 20, 2010 at 4:06pm power=

  4. math

    Ariel wants to choose 5 players for her basketball team. There are 7 players to choose from. How many different teams can Ariel make? A) 21 B) 35 C) 42 D) 56 please help me! And show how you got the answer! I thought you were

  1. accounting

    In 2007, Paul who is single has a comfortable salary from his job as well as income from his investment portfolio. However, he is habitually late in filing his federal income tax return. He did not file his 2007 income tax return

  2. Math repost for Jessica

    Compare using < , > , or =. –15 _____ –21 A. < B. > C. = 0 0 posted by Jessica today at 3:33pm

  3. For SraJMcGin

    Posted by manny on Tuesday, October 2, 2007 at 6:41pm. what does "los famas" mean in spanish i looked it up and i get fame for "fama" but it does not make sense in this particular context Context: "Cuando los famas salen de

  4. math help

    Posted by grant on Saturday, May 12, 2007 at 9:20am. The table shows the depth (d metres) of water in a harbour at certain times (t hours) after midnight on a particular day. time t (hours) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 and the

  1. English

    posted by rfvv Monday, November 28, 2016 at 3:29pm. Posted by rfvv on Friday, November 4, 2016 at 11:17pm. Oh Lordy, how my heart grows weary, far from the old folks at home. --------------------------------- This is a sentence in

  2. Math repost for jet

    Posted by Jet on Saturday, September 29, 2007 at 2:01pm. The least number of moves in the Tower of Hanoi puzzle with 5 disks?

  3. English

    Posted by rfvv on Friday, November 4, 2016 at 11:17pm. Oh Lordy, how my heart grows weary, far from the old folks at home. --------------------------------- This is a sentence in the song "Swanee River. Q1: " What is the meaning

  4. Maths

    A surveyor stands 200m from the base of a tower on which an Ariel stands. He measures the angle of elevation to the top and bottom of the Ariel as 58 degree and 56 degree. Find the height of the Ariel.

You can view more similar questions or ask a new question.