# Algorithm/Function

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.

1. 👍
2. 👎
3. 👁

## Similar Questions

1. ### Arithmetic

Two sailors traveled by bus from one point to another. The trip took 15 hours, and they left their point of origin at 8am. What time did they arrive at their destination?

2. ### Physics

A man which travel due north in other to cross a river 5km wide flowing due east at 3km/h. If he can roll at 10km/h in still water. Find either by scale drawing or by calculation (1) the direction in which he must head is boat in

3. ### Algebra

Boris is driving to Memphis. Suppose that the distance to his destination (in miles) is a linear function of his total driving time (in minutes). Boris has 58 miles to his destination after 21 minutes of driving, and he has 42.6

Human activities, like burning fossil fuels and deforestation, have greatly contributed to global warming. In this assignment, you will go on a trip around the world to explore the effects of climate change. Choose one destination

1. ### U.S. History

1. What cities were destination points fro the Chisholm Trail? A: Abilene, Ellsworth, and Dodge City in Kansas were destination points for the Chisholm Trail. 2. Why do you think the destination cities at the end of the cattle

2. ### Physics

A charge q1 = 5 ìC is at the origin. A second charge q2 = -3 ìC is on the x-axis, 0.8 m from the origin. The electric field at a point on the y-axis, 0.5 m from the origin is: I don't understand the question please help . Thanks

3. ### Physics

If the airplane is traveling at a velocity of 320 km/h to the north, how long will it take to reach its destination if that destination is 2300 km to the north?

4. ### quick algebra question

When asked what quadrant the coordinate (0,0) is in, should I put None or Origin as my answer? It is by definition the origin. It is not in any of the four quadrants. I would put "origin." Orgin would get my vote too. I think in

1. ### physic

two particles moving along x-axis in the same direction with uniform velocity is 8 metre per second and 4 metre per second initially the first particle is 21 m to the left of the origin and the second one is 7 m to the right of

2. ### physics

A ship leaves its home port expecting to travel to a port 500.0 km due south. Before it moves even 1 km, a servere storm blows it 100.0 km due east. Hom far is the ship from its destination? In what direction must it travel to

3. ### maths

flight is supposed to start at 1025 hours and reach destination at 1320 hours. if it starts 15 minutes late and arrives 19 minutes late,how long does it take to reach its destination

4. ### 6th math

It took 3.5 hours for an airplane traveling at a constant speed of 550 miles per hour to reach its destination. What distance did the airplane travel until it reached its destination? What????