# Math/ Computers

posted by .

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.

## Similar Questions

1. ### 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 …
2. ### Physics

A coordinate system (in meters) is constructed on the surface of a pool table, and three objects are placed on the table as follows: a 5.0 kg object at the origin of the coordinate system, a 12.0 kg object at (0, 2.0), and a 16.0 kg …
3. ### physics

At the instant the displacement of a 2.00 kg object relative to the origin is d = (2.00 m) + (4.00 m) - (3.00 m) , its velocity is v = - (5.50 m/s) + (2.90 m/s) + (3.20 m/s) , and it is subject to a force F = (5.70 N) - (7.80 N) + …
4. ### Physics

A coordinate system (in meters) is constructed on the surface of a pool table, and three objects are placed on the table as follows: a 7.0-kg object at the origin of the coordinate system, a 8.0-kg object at (0, 2.0), and a 17.0-kg …
5. ### Physics

A coordinate system (in meters) is constructed on the surface of a pool table, and three objects are placed on the table as follows: a 4.0 kg object at the origin of the coordinate system, a 5.0 kg object at (0, 2.0), and a 9.0 kg …
6. ### physics

the object is traveling in a circle,which one of the statements are true. choose all that apply?
7. ### physics

our objects are situated along the y axis as follows: a 1.94 kg object is at +3.27 m, a 2.76 kg object is at +2.18 m, a 2.78 kg object is at the origin, and a 3.99 kg object is at -0.360 m. Where is the center of gravity of this system?
8. ### Physics B

A coordinate system (in meters) is constructed on the surface of a pool table, and three objects are placed on the coordinate system as follows: a 1.5 kg object at the origin, a 3.4 kg object at (0 m,1.8 m), and a 4.5 kg object at …
9. ### physics

Question: Object A is moving at a maximum speed of 6m/s towards Object B. At 50 m away Object B accelerates from the approaching Object A at 0.3m/s^2. Does Object A catch up to Object B and if yes when?
10. ### MATH

Suppose an object moves along the x-axis so that its position at time $t$ is $x=-t+\frac{t^3}{6}$. (a) Find the velocity, $v(t)=x(t)$, of the object. (b) What is $v(0)$?

More Similar Questions