code: public double intersectX(double x)
  	{
  		if (direction.x == 0)
  			return Double.NaN;
  		return (x - origin.x) / direction.x;
  	}
docs: Gets the distance to the plane at x.
  
  @param x the x plane
  @return the distance