Ok, so this is probably a really basic question, and I've got a feeling that my brain is just too 'fuzzy' just now and that all my problem is is simple arithmetic, but here it goes...(adsbygoogle = window.adsbygoogle || []).push({});

1. Determine whether or not the box with vertices at (2,1), (5,1), (5,5), and (2,5) is intersected by the ray originating at (3,8) and:

(i) ends at (6,-1)

(ii) ends at (-2,3)

(iii) has direction i-5j

Box:

AB: (2+3u / 1) -(1)

CD: (5-3u / 5) -(2)

BC: (5 / 1+4u) -(3)

AD: (2 / 1+4u) -(4)

(i) Ray (3,8) to (6,-1)

(3+3t / 8-9t)

(1) & (i) -> (2+3u / 1) = (3+3t / 8-9t)

How do I get this down to give t and u to show that intersection occurs? I'm sorry that this is such a basic question, I've been working all day and dont seem to be able to think properly just now.

Thanks in advance for any help.

1. The problem statement, all variables and given/known data

2. Relevant equations

3. The attempt at a solution

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Ray Tracing with boxes

**Physics Forums | Science Articles, Homework Help, Discussion**