if (-dir.z() < MathUtil.EPSILON) {
return null;
}
double ratio = -focusDistance / dir.z();
double x = ray.origin().x() + ratio * dir.x();
double y = ray.origin().y() + ratio * dir.y();
final double u = 0.5 + x / objPlaneWidth;
if (!MathUtil.inRangeCC(u, 0.0, 1.0)) {
return null;