Original Post
Hi.
I''m currently developing a 3d engine, an i''m working on the collision dectection. For one piece of the test, i need to be able to return 2 points of intersection between a line segment and two planes.
I have developed a CPlane and CVector3D class, but i want to be able to return a two CVector3D object from my function
At the moment I''am able to return one point but how would i return my next point without using "&&"??
Thanks
Broni
CPlane::RayIntersection(CVector3D& vec, CVector3D& vec2,CPlane Plane)
{
.....blah;
//I calulate the dot product and find the points of intersection.
.....blah;
return (points)