// Then substitute t into the Ray Equation to get the intersection point.
//
// Source: Various: Lars Bishop book, Geometry Toolbox, Doug T.
Vector3f pointDiffVec = new Vector3f(planePoint);
pointDiffVec.subtractLocal(ray.getOrigin());
float numerator = planeNormal.dot(pointDiffVec);
float denominator = planeNormal.dot(ray.getDirection());
if (denominator == 0f) {
// No intersection
return null;