Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am currently having issues with calculating plane intersection of a ray.

I start with the following equation $P = P_0 +tR_t$

$R_t$ is the Unit Vector of the Trajectory.

Now we have a plane which is given by

$Ax+Bx+Cx +D = 0$

Where the normal vector is given by $N = \langle A,B,C\rangle$

To calculate the Plane Intersection you find $t$

$t = \frac{R_0\cdot N + D}{R_t \cdot N}$

Then once you have that you substitude and find intersection.

Assuming I want to find the ray intersection to the y=0 plane, what would be my D value in this case. I know that is should be $D=-Ax-By-Cz$ . But how to determine x,y,and z?

share|improve this question
    
help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! –  Anonymous Nov 29 '12 at 18:09
add comment

1 Answer 1

The plane should be $Ax+By+Cz+D=0$ (not all vars $x$ as you wrote). Then the plane $y=0$ fits this using $A=0,B=1,C=0,D=0$.

So your $N=(0,1,0)$ and your formula should work.

However your formula $P=P_0+tR_t$ makes it look like the coordinates of the unit vector $R_t$ depend on the parameter $t$. In this case the formula for $P$ does not represent a ray, but rather a curve in space, and finding its intersection with a plane will be in general difficult. If instead $R_t$ is a constant vector, say $P=P_0+tR_0$, then this lies on the plane iff $N \cdot P+D=0$ and the formula for $t$ may be obtained on substituting $P=P_0+tR_0$ for $P$ in the plane equation $N \cdot P+D=0.$

share|improve this answer
    
+1 for the remark on $R_t$. –  user1551 Nov 30 '12 at 10:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.