Subject: more SP2 woes (This message is being sent to all CPSC 102 Sec 1 students ) Yet another diligent student sez: ----------- When running my plane program, part of my output reads dist to plane 2 -1.000 hit point 0.000 0.000 0.000 when in the output posted online it reads dist to plane 2 -1.000 hit point 4.000 -7.161 0.161 ------------ Dr. Westall answers: This has been a bad week for me! My original test program didn't have the "memset()" that reset the hit coords to 0.0. I must have subsequently fixed it for the notes :-( Anyhow, returning -1.0 is all that is necessary to report a miss. So if distance is -1.0 hit point is irrelevant and can be ignored. -------------