Is this plane-ray intersection code correct?
问题 My Plane class has two fields: public Vector3 Norm; //normal vector public double Offset; //signed distance to origin This is the code I use for intersection, and I don't know if it is correct. I double checked my equations and everything, but I would like to get feedback from people more experienced with this. public override Intersection Intersect(Ray ray) { // Create Intersection. Intersection result = new Intersection(); // Find t. double t = - (Vector3.Dot(Norm,ray.Start) + Offset) /